diff --git a/wise-webapp/src/main/java/com/wisemapping/model/Collaboration.java b/wise-webapp/src/main/java/com/wisemapping/model/Collaboration.java index 8f766e25..a5bc1e44 100644 --- a/wise-webapp/src/main/java/com/wisemapping/model/Collaboration.java +++ b/wise-webapp/src/main/java/com/wisemapping/model/Collaboration.java @@ -19,9 +19,6 @@ package com.wisemapping.model; -import org.hibernate.annotations.OnDelete; -import org.hibernate.annotations.OnDeleteAction; - import javax.persistence.*; import javax.validation.constraints.NotNull; import java.io.Serializable; @@ -33,7 +30,6 @@ public class Collaboration implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private int id; - ; @Column(name = "role_id", unique = true) private CollaborationRole role; diff --git a/wise-webapp/src/main/java/com/wisemapping/model/Collaborator.java b/wise-webapp/src/main/java/com/wisemapping/model/Collaborator.java index d9af2e99..9499a794 100755 --- a/wise-webapp/src/main/java/com/wisemapping/model/Collaborator.java +++ b/wise-webapp/src/main/java/com/wisemapping/model/Collaborator.java @@ -32,8 +32,8 @@ import java.util.Set; @Entity @Table(name = "COLLABORATOR") @Inheritance(strategy = InheritanceType.JOINED) -@Cacheable -@org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_WRITE) +//@Cacheable +//@org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public class Collaborator implements Serializable { @Id @GeneratedValue(strategy= GenerationType.IDENTITY) diff --git a/wise-webapp/src/main/java/com/wisemapping/model/User.java b/wise-webapp/src/main/java/com/wisemapping/model/User.java index 663c6a00..b90e0da6 100644 --- a/wise-webapp/src/main/java/com/wisemapping/model/User.java +++ b/wise-webapp/src/main/java/com/wisemapping/model/User.java @@ -18,6 +18,7 @@ package com.wisemapping.model; +import org.hibernate.annotations.CacheConcurrencyStrategy; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -30,6 +31,8 @@ import java.util.Set; @Entity @Table(name = "USER") @PrimaryKeyJoinColumn(name = "colaborator_id") +//@Cacheable +//@org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public class User extends Collaborator implements Serializable {