Enable entities cache.

This commit is contained in:
Paulo Gustavo Veiga 2022-09-24 08:39:11 -07:00
parent 39bb8f458b
commit b5e7389e41
2 changed files with 4 additions and 4 deletions

View File

@ -32,8 +32,8 @@ import java.util.Set;
@Entity @Entity
@Table(name = "COLLABORATOR") @Table(name = "COLLABORATOR")
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
//@Cacheable @Cacheable
//@org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_WRITE) @org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Collaborator implements Serializable { public class Collaborator implements Serializable {
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy= GenerationType.IDENTITY)

View File

@ -31,8 +31,8 @@ import java.util.Set;
@Entity @Entity
@Table(name = "USER") @Table(name = "USER")
@PrimaryKeyJoinColumn(name = "colaborator_id") @PrimaryKeyJoinColumn(name = "colaborator_id")
//@Cacheable @Cacheable
//@org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_WRITE) @org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class User public class User
extends Collaborator extends Collaborator
implements Serializable { implements Serializable {