mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07:57 +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
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@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;
|
private CollaborationRole role;
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@ -44,7 +45,8 @@ public class Collaboration implements Serializable {
|
|||||||
|
|
||||||
@ManyToOne(cascade = CascadeType.ALL)
|
@ManyToOne(cascade = CascadeType.ALL)
|
||||||
@JoinColumn(name = "properties_id", nullable = false, unique = true)
|
@JoinColumn(name = "properties_id", nullable = false, unique = true)
|
||||||
private CollaborationProperties collaborationProperties = new CollaborationProperties();;
|
private CollaborationProperties collaborationProperties = new CollaborationProperties();
|
||||||
|
;
|
||||||
|
|
||||||
public Collaboration() {
|
public Collaboration() {
|
||||||
}
|
}
|
||||||
@ -129,10 +131,9 @@ public class Collaboration implements Serializable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
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 + (role != null ? role.hashCode() : 0);
|
||||||
result = 31 * result + (mindMap != null ? mindMap.hashCode() : 0);
|
result = 31 * result + (mindMap != null ? mindMap.hashCode() : 0);
|
||||||
result = 31 * result + (collaborator != null ? collaborator.hashCode() : 0);
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user