Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Andras Madi-Szabo
Added: May 19, 2020 10:36 AM
Modified: May 19, 2020 11:15 AM
Views: 6
Tags: beci vizsga
  1. import javax.persistence.Entity;
  2. import javax.persistence.GeneratedValue;
  3. import javax.persistence.GenerationType;
  4. import javax.persistence.Id;
  5. import javax.persistence.Table;
  6. import lombok.Getter;
  7. import lombok.Setter;
  8.  
  9. @Getter
  10. @Setter
  11.  
  12. @Table(name = "users")
  13. public class User {
  14.  
  15.   @Id
  16.   @GeneratedValue(strategy = GenerationType.IDENTITY)
  17.   private long id;
  18.  
  19.   private String name;
  20.  
  21.   private int age;
  22.  
  23.  
  24. }