mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-24 23:17:56 +01:00
Remove hackcode forze of lazy loading.
This commit is contained in:
parent
ccc0b10ea0
commit
89dd7e0193
@ -29,9 +29,10 @@ public class Collaboration implements Serializable {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private int id;;
|
||||
private int id;
|
||||
;
|
||||
|
||||
@Column(name = "role_id",unique = true,nullable = true)
|
||||
@Column(name = "role_id", unique = true)
|
||||
private CollaborationRole role;
|
||||
|
||||
@ManyToOne
|
||||
@ -44,7 +45,8 @@ public class Collaboration implements Serializable {
|
||||
|
||||
@ManyToOne(cascade = CascadeType.ALL)
|
||||
@JoinColumn(name = "properties_id", nullable = false, unique = true)
|
||||
private CollaborationProperties collaborationProperties = new CollaborationProperties();;
|
||||
private CollaborationProperties collaborationProperties = new CollaborationProperties();
|
||||
;
|
||||
|
||||
public Collaboration() {
|
||||
}
|
||||
@ -129,10 +131,9 @@ public class Collaboration implements Serializable {
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = (int) (id ^ (id >>> 32));
|
||||
int result = id ^ (id >>> 32);
|
||||
result = 31 * result + (role != null ? role.hashCode() : 0);
|
||||
result = 31 * result + (mindMap != null ? mindMap.hashCode() : 0);
|
||||
result = 31 * result + (collaborator != null ? collaborator.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user