Commit 6d95e34 1 parent f1d89a0 commit 6d95e34 Copy full SHA for 6d95e34
File tree 1 file changed +29
-0
lines changed
src/main/java/ecureuill/milhasapi/domain/destination
1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ package ecureuill .milhasapi .domain .destination ;
2
+
3
+ import java .math .BigDecimal ;
4
+
5
+ import jakarta .persistence .Entity ;
6
+ import jakarta .persistence .GeneratedValue ;
7
+ import jakarta .persistence .GenerationType ;
8
+ import jakarta .persistence .Id ;
9
+ import jakarta .persistence .Table ;
10
+ import lombok .AllArgsConstructor ;
11
+ import lombok .EqualsAndHashCode ;
12
+ import lombok .Getter ;
13
+ import lombok .NoArgsConstructor ;
14
+
15
+ @ Table (name = "destinations" )
16
+ @ Entity (name = "Destination" )
17
+ @ Getter
18
+ @ AllArgsConstructor
19
+ @ NoArgsConstructor
20
+ @ EqualsAndHashCode (of = "id" )
21
+ public class Destination {
22
+
23
+ @ Id
24
+ @ GeneratedValue (strategy = GenerationType .IDENTITY )
25
+ private Long id ;
26
+ private String name ;
27
+ private String photo ;
28
+ private BigDecimal Price ;
29
+ }
You can’t perform that action at this time.
0 commit comments