File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/main/java/com/getourguide/interview/entity Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 7
7
import jakarta .persistence .Id ;
8
8
import jakarta .persistence .ManyToOne ;
9
9
import jakarta .persistence .Table ;
10
- import lombok .Data ;
10
+ import lombok .AllArgsConstructor ;
11
+ import lombok .EqualsAndHashCode ;
12
+ import lombok .Getter ;
11
13
import lombok .NoArgsConstructor ;
14
+ import lombok .Setter ;
15
+ import lombok .ToString ;
12
16
import org .hibernate .annotations .NotFound ;
13
17
import org .hibernate .annotations .NotFoundAction ;
14
18
15
- @ Data
19
+ @ Getter
20
+ @ Setter
21
+ @ ToString
22
+ @ AllArgsConstructor
16
23
@ Entity
17
24
@ Table (schema = "getyourguide" , name = "activity" )
18
25
@ NoArgsConstructor
26
+ @ EqualsAndHashCode
19
27
public class Activity {
20
28
@ Id
21
29
@ GeneratedValue (strategy = GenerationType .AUTO )
@@ -27,5 +35,6 @@ public class Activity {
27
35
private boolean specialOffer ;
28
36
@ ManyToOne (fetch = FetchType .LAZY )
29
37
@ NotFound (action = NotFoundAction .IGNORE )
38
+ @ ToString .Exclude
30
39
private Supplier supplier ;
31
40
}
You can’t perform that action at this time.
0 commit comments