|
|
|
@ -4,7 +4,9 @@ import jakarta.persistence.Entity;
|
|
|
|
|
import jakarta.persistence.GeneratedValue;
|
|
|
|
|
import jakarta.persistence.GenerationType;
|
|
|
|
|
import jakarta.persistence.Id;
|
|
|
|
|
import jakarta.persistence.ManyToOne;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
import pedidos.pedidos.core.compania.Compania;
|
|
|
|
|
|
|
|
|
|
@Data
|
|
|
|
|
@Entity
|
|
|
|
@ -17,4 +19,6 @@ public class Cliente {
|
|
|
|
|
private String nombre;
|
|
|
|
|
private String telefono;
|
|
|
|
|
|
|
|
|
|
@ManyToOne
|
|
|
|
|
private Compania compania;
|
|
|
|
|
}
|