Code example for Date

Methods: hashCode

0
    public int hashCode() { 
        int result = idFamily;
        result = 31 * result + (family != null ? family.hashCode() : 0);
        result = 31 * result + (password != null ? password.hashCode() : 0);
        result = 31 * result + (email != null ? email.hashCode() : 0);
        result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
        return result;
    } 
 
    private Collection<FamilyMember> familyMembersByIdFamily;
 
    @OneToMany(mappedBy = "familyByIdFamily", targetEntity = FamilyMember.class, fetch = FetchType.LAZY, cascade = CascadeType.ALL) 
    @JoinTable(name = "family_member") 
    @NotFound(action = NotFoundAction.IGNORE) 
    public Collection<FamilyMember> getFamilyMembersByIdFamily() {
        return familyMembersByIdFamily;
    } 
 
    public void setFamilyMembersByIdFamily(Collection<FamilyMember> familyMembersByIdFamily) {
        this.familyMembersByIdFamily = familyMembersByIdFamily;
    }