Changeset 676144b for src/main/java/com/example/autopartz/model/User.java
- Timestamp:
- 01/05/23 04:11:40 (23 months ago)
- Branches:
- main
- Children:
- 1bd8d1e
- Parents:
- 7d43957
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/model/User.java
r7d43957 r676144b 25 25 @Id 26 26 @GeneratedValue(strategy = GenerationType.IDENTITY) 27 Integer ID_user; 27 @Column(name = "ID_user") 28 Integer id; 28 29 String username; 29 30 String email; 30 String name_user; 31 @Column(name = "name_user") 32 String name; 31 33 @Column(name = "password_user") 32 34 String password; … … 39 41 public User(String username, String name, String email, String password, String number) { 40 42 this.username = username; 41 this.name _user= name;43 this.name = name; 42 44 this.email = email; 43 45 this.password = password; … … 51 53 if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) return false; 52 54 User user = (User) o; 53 return ID_user != null && Objects.equals(ID_user, user.ID_user);55 return id != null && Objects.equals(id, user.id); 54 56 } 55 57
Note:
See TracChangeset
for help on using the changeset viewer.