From b5e7389e41162249632914125a65f8504360248c Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sat, 24 Sep 2022 08:39:11 -0700 Subject: [PATCH] Enable entities cache. --- .../src/main/java/com/wisemapping/model/Collaborator.java | 4 ++-- wise-webapp/src/main/java/com/wisemapping/model/User.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 9499a794..d9af2e99 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 b90e0da6..53b7c3e8 100644 --- a/wise-webapp/src/main/java/com/wisemapping/model/User.java +++ b/wise-webapp/src/main/java/com/wisemapping/model/User.java @@ -31,8 +31,8 @@ import java.util.Set; @Entity @Table(name = "USER") @PrimaryKeyJoinColumn(name = "colaborator_id") -//@Cacheable -//@org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_WRITE) +@Cacheable +@org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public class User extends Collaborator implements Serializable {