Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Entity
- @EntityListeners(value = UserAuditLogListener.class)
- public class User implements Serializable {
- @Id
- @Column(name = "id", nullable = false, updatable = false)
- @GeneratedValue(strategy = GenerationType.AUTO)
- private long id;
- @Column(name = "name")
- private String name;
- @Column(name = "city")
- private String city;
- public User(String name, String city) {
- this.name = name;
- this.city = city;
- }
- //Getter and Setter methods
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement