-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtatus
52 lines (51 loc) · 1.23 KB
/
tatus
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
diff --git a/src/main/java/com/thoughtworks/models/SuggestBook.java b/src/main/java/com/thoughtworks/models/SuggestBook.java
index 6f8ea5a..2d6fba9 100644
--- a/src/main/java/com/thoughtworks/models/SuggestBook.java
+++ b/src/main/java/com/thoughtworks/models/SuggestBook.java
@@ -1,11 +1,37 @@
package com.thoughtworks.models;
-/**
- * Created with IntelliJ IDEA.
- * User: gopal
- * Date: 27/8/13
- * Time: 5:30 PM
- * To change this template use File | Settings | File Templates.
- */
-public class SuggestBook {
-}
+
+import lombok.Getter;
+import lombok.Setter;
+import org.hibernate.annotations.LazyCollection;
+import org.hibernate.annotations.LazyCollectionOption;
+import org.hibernate.validator.constraints.NotEmpty;
+
+import javax.persistence.*;
+import javax.validation.constraints.NotNull;
+
+
+@Setter
+@Getter
+@Entity
+@Table(name = "suggest")
+public class SuggestBook extends BaseEntity {
+
+
+ @NotNull
+ @Column(name = "employeeId")
+ private long employeeId;
+
+ @NotEmpty
+ @Column(name = "bookName")
+ private String bookName;
+
+ @NotEmpty
+ @Column(name = "authorName")
+ private String authorName;
+
+ @NotNull
+ @Column(name = "edition")
+ private int edition;
+
+}
\ No newline at end of file