|
|
@@ -2,6 +2,7 @@ package com.uas.sso.entity;
|
|
|
|
|
|
import com.alibaba.fastjson.annotation.JSONField;
|
|
|
import org.codehaus.jackson.annotate.JsonIgnore;
|
|
|
+import org.hibernate.annotations.CacheConcurrencyStrategy;
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
import javax.persistence.*;
|
|
|
@@ -14,6 +15,8 @@ import javax.persistence.*;
|
|
|
*/
|
|
|
@Entity
|
|
|
@Table(name = "sso$app")
|
|
|
+@Cacheable
|
|
|
+@org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "AppCache")
|
|
|
public class App implements Serializable {
|
|
|
|
|
|
/**
|
|
|
@@ -123,6 +126,7 @@ public class App implements Serializable {
|
|
|
*/
|
|
|
@com.fasterxml.jackson.annotation.JsonIgnore
|
|
|
@OneToOne(mappedBy = "app", fetch = FetchType.LAZY)
|
|
|
+ @org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
|
|
|
private PageStyle pageStyle;
|
|
|
|
|
|
public String getUid() {
|