javax.persistence.Cacheable类的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(163)

本文整理了Java中javax.persistence.Cacheable类的一些代码示例,展示了Cacheable类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Cacheable类的具体详情如下:
包路径:javax.persistence.Cacheable
类名称:Cacheable

Cacheable介绍

暂无

代码示例

代码示例来源:origin: kiegroup/jbpm

@Entity
@Table(name="OrganizationalEntity")
@Cacheable
public abstract class OrganizationalEntityImpl implements InternalOrganizationalEntity {
  @Id
  private String id;

代码示例来源:origin: hibernate/hibernate-orm

if ( explicitCacheableAnn != null && explicitCacheableAnn.value() ) {
  isCached = true;
if ( explicitCacheableAnn == null || explicitCacheableAnn.value() ) {
  isCached = true;
if ( explicitCacheableAnn != null && explicitCacheableAnn.value() ) {
  isCached = true;
if ( explicitCacheableAnn == null || !explicitCacheableAnn.value() ) {
  isCached = true;

代码示例来源:origin: hibernate/hibernate-orm

@Entity(name = "AnEntity")
@Cacheable
public static class AnEntity {
  @Id
  private int id;
  @ManyToOne
  private OtherEntity otherEntity;
}

代码示例来源:origin: naver/ngrinder

@Entity
@Cacheable
@org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@Table(name = "NUSER")
public class User extends BaseModel<User> {

代码示例来源:origin: hburgmeier/jerseyoauth2

@Entity
@NamedQueries({
  @NamedQuery(name="findTokenEntityByRefreshToken", query="select te from TokenEntity te where te.refreshToken = :refreshToken"),
  @NamedQuery(name="findTokenEntityByUsername", query="select te from TokenEntity te where te.clientApp.username = :username")
})
@Cacheable
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
@XmlRootElement
class TokenEntity implements IAccessTokenInfo {
  @Id
  private String accessToken;
  private String refreshToken;

代码示例来源:origin: remibantos/jeeshop

@Entity
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
@Cacheable
public class Catalog extends CatalogItem{

代码示例来源:origin: dswarm/dswarm

@XmlRootElement
@MappedSuperclass
@Cacheable(false)
public abstract class DMPObject implements Serializable {
  @Id
  @XmlID
  @Access(AccessType.FIELD)
  @Column(name = "UUID", columnDefinition = "VARCHAR(160)", length = 160, unique = true)
  private String uuid;

代码示例来源:origin: dswarm/dswarm

@XmlRootElement
@MappedSuperclass
@Cacheable(false)
public abstract class BasicDMPJPAObject extends DMPObject {
  @Column(name = "NAME")
  private String				name;

代码示例来源:origin: org.jasig.portal/uPortal-layout-impl

@Entity
@Cacheable
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class ProfileEvaluator extends Evaluator {
  @Column(name = "PROFILE_FNAME")
  protected String profileFname;

代码示例来源:origin: hibernate/hibernate-orm

@Entity( name = "Customer" )
@Cacheable(false)
public static class Customer extends Person {
  public String erpCode;
  public Customer() {
  }
  public Customer(String id, String name, String erpCode) {
    super( id, name );
    this.erpCode = erpCode;
  }
}

代码示例来源:origin: hibernate/hibernate-orm

@Entity(name = "OtherEntity")
  @Cacheable
  public static class OtherEntity implements Serializable {
    @Id
    private String firstName;

    @Id
    private String lastName;

    private String description;

    @Override
    public String toString() {
      return "OtherEntity{" +
          "firstName='" + firstName + '\'' +
          ", lastName='" + lastName + '\'' +
          ", description='" + description + '\'' +
          '}';
    }
  }
}

代码示例来源:origin: zanata/zanata-platform

@Entity
@Cacheable
@Table(uniqueConstraints = @UniqueConstraint(name = "UKAccountId", columnNames = "accountId"))
@GraphQLType(name = "AccountResetPasswordKey")
public class HAccountResetPasswordKey extends AccountKeyBase implements
    Serializable {

  private static final long serialVersionUID = 1L;

}

代码示例来源:origin: apache/cxf

@XmlRootElement
@Entity
@Cacheable
public class OAuthPermission implements Serializable {
  private static final long serialVersionUID = -6486616235830491290L;

代码示例来源:origin: dswarm/dswarm

@XmlRootElement
@MappedSuperclass
@Cacheable(false)
public abstract class AdvancedDMPJPAObject extends BasicDMPJPAObject {
  @Column(name = "URI", columnDefinition = "VARCHAR(255)", length = 255, unique = true)
  private final String uri;

代码示例来源:origin: mkuthan/example-spring

@Entity
@Cacheable
@org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Role extends AbstractAggregateEntity {

  @Embedded
  @AttributeOverride(name = RoleIdentifier.IDENTIFIER_PROPERTY, column = @Column(nullable = false, unique = true))
  private RoleIdentifier identifier;

  @Column(nullable = false)
  private String name;

  protected Role() {
  }

  public Role(RoleIdentifier identifier, String name) {
    this.identifier = checkNotNull(identifier);
    this.name = checkNotNull(name);
  }

  public RoleIdentifier getIdentifier() {
    return identifier;
  }

  public String getName() {
    return name;
  }

}

代码示例来源:origin: hibernate/hibernate-orm

@Entity( name = "Customer" )
@Cacheable()
public static class Customer extends Person {
  public String erpCode;
  public Customer() {
  }
  public Customer(Integer id, String name, String erpCode) {
    super( id, name );
    this.erpCode = erpCode;
  }
}

代码示例来源:origin: hibernate/hibernate-orm

@Entity( name = "Person" )
@Table( name = "persons" )
@Cacheable()
@Inheritance( strategy = InheritanceType.SINGLE_TABLE )
public static class Person {
  @Id
  public String id;
  public String name;
  public Person() {
  }
  public Person(String id, String name) {
    this.id = id;
    this.name = name;
  }
}

代码示例来源:origin: hibernate/hibernate-orm

@Entity
@Cacheable
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Address {
  @Id
  Integer id;
  String streetLine1;

代码示例来源:origin: org.chtijbug.drools/drools-platform-persistence

@Entity
@Table(name = "rule_asset_category")
@Cacheable(value = true)
public class RuleAssetCategory {
  @Id

代码示例来源:origin: org.apache.cxf/cxf-rt-rs-security-oauth2

@XmlRootElement
@Entity
@Cacheable
public class OAuthPermission implements Serializable {
  private static final long serialVersionUID = -6486616235830491290L;

相关文章

微信公众号

最新文章

更多