Advertisement
the_cec

lombok-issue_entity

Apr 8th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. package com.blog.models;
  2.  
  3. import javax.persistence.Entity;
  4. import javax.persistence.GeneratedValue;
  5. import javax.persistence.GenerationType;
  6. import javax.persistence.Id;
  7.  
  8. import lombok.Data;
  9.  
  10.  
  11. @Entity
  12. @Data
  13. public class User {
  14. @Id
  15. @GeneratedValue(strategy=GenerationType.AUTO)
  16. private long id;
  17.  
  18. private String name;
  19. private String email;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement