Add Location Entity, Service and Repository. Add Test to add a location line for a client wich rent a game
This commit is contained in:
31
src/main/java/fr/eni/demo/bo/Adresse.java
Normal file
31
src/main/java/fr/eni/demo/bo/Adresse.java
Normal file
@@ -0,0 +1,31 @@
|
||||
package fr.eni.demo.bo;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.*;
|
||||
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
@Builder
|
||||
|
||||
@Entity
|
||||
@Table(name="ADRESSES")
|
||||
public class Adresse {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "ADRESSE_ID")
|
||||
private Integer id;
|
||||
|
||||
@Column(name = "STREET",nullable = false, length = 250)
|
||||
private String rue;
|
||||
|
||||
@Column(name = "POSTAL_CODE",nullable = false, length = 5)
|
||||
private String codePostal;
|
||||
|
||||
@Column(name = "CITY",nullable = false, length = 150)
|
||||
private String ville;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user