1 package demo.drupal.persistence; 2 3 import javax.persistence.Id; 4 import javax.persistence.Entity; 5 import javax.persistence.Table; 6 7 @Entity 8 @Table(name="users") 9 public class User { 10 35 36 @Id 37 private int uid; 38 private String name; 39 private String pass; 40 private String mail; 41 private int mode; 42 private int sort; 43 private int threshold; 44 private String theme; 45 private String signature; 46 private int created; 47 private int access; 48 private int login; 49 private int status; 50 private String timezone; 51 private String language; 52 private String picture; 53 private String init; 54 private String data; 55 56 public String toString() 57 { 58 return getClass().getSimpleName() + "[" + uid + "," + name + "]"; 59 } 60 } 61 62 70 | Popular Tags |