package org.example.demo.praktikum2;

import java.io.Serializable;

import jakarta.persistence.*;
import lombok.*;

@Entity
@ToString
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Adresse implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;

    @SuppressWarnings("unused")
    private String strasse;

    @SuppressWarnings("unused")
    private String plz;

    @SuppressWarnings("unused")
    private String ort;

    @ManyToOne
    private Person person;
}
