Class User
java.lang.Object
springboot.bg.harisauto.user.model.User
User.java - Entity class for storing user information.
- Author:
- Kristian Popov
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
User
public User()
-
-
Method Details
-
equals
Identity-based equality.Deriving equality from the fields, as
@Datadid, is unsafe for an entity: two distinct rows holding the same values compared equal, the hash changed as the instance was mutated, and the comparison reached into the vehicles collection - which now would trigger a lazy load. -
hashCode
public int hashCode()Constant hash, so an instance keeps the same bucket before and after it is persisted.
-