当前位置: 首页>>代码示例>>Java>>正文


Java CacheConcurrencyStrategy.NONSTRICT_READ_WRITE属性代码示例

本文整理汇总了Java中org.hibernate.annotations.CacheConcurrencyStrategy.NONSTRICT_READ_WRITE属性的典型用法代码示例。如果您正苦于以下问题:Java CacheConcurrencyStrategy.NONSTRICT_READ_WRITE属性的具体用法?Java CacheConcurrencyStrategy.NONSTRICT_READ_WRITE怎么用?Java CacheConcurrencyStrategy.NONSTRICT_READ_WRITE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.hibernate.annotations.CacheConcurrencyStrategy的用法示例。


在下文中一共展示了CacheConcurrencyStrategy.NONSTRICT_READ_WRITE属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getStreet

/**
    * The GisFeature, the Alternate name refers to
    * 
    * @return the GisFeature, the AlternateName refers to
    */
   @ManyToOne(fetch = FetchType.LAZY)
   @JoinColumn(nullable = false, name = "street")
   @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
   @Index(name = "Alternatenameosmnameindex")
   public OpenStreetMap getStreet() {
return street;
   }
 
开发者ID:gisgraphy,项目名称:gisgraphy,代码行数:12,代码来源:AlternateOsmName.java

示例2: getParent

/**
    * Returns The parent Adm in the Adm tree structure
    * 
    * @return The parent Adm (with lower Level)
    */
   @ManyToOne(fetch = FetchType.EAGER)
   @JoinColumn(nullable = true, name = "parent")
   @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
   @Index(name = "admadmindex")
   public Adm getParent() {
return parent;
   }
 
开发者ID:gisgraphy,项目名称:gisgraphy,代码行数:12,代码来源:Adm.java

示例3: getAlternateNames

/**
 * @return A list of the {@link AlternateName}s for this street
 */
@OneToMany(cascade = { CascadeType.ALL }, mappedBy = "street")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@Fetch(FetchMode.SELECT)
public List<AlternateOsmName> getAlternateNames() {
	return alternateNames;
}
 
开发者ID:gisgraphy,项目名称:gisgraphy,代码行数:9,代码来源:OpenStreetMap.java

示例4: getGrantedDataRights

/**
 * @return grantedUserDataRights
 */
@ElementCollection(fetch=FetchType.LAZY)
@CollectionTable(name="user_granted_right", [email protected](name = "user_id"), 
		uniqueConstraints={
			@UniqueConstraint(columnNames={"user_id", "\"right\""})})
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@Column(name="\"right\"")
public Set<GrantedRight> getGrantedDataRights() {
	return this.grantedDataRights;
}
 
开发者ID:MobileManAG,项目名称:Project-H-Backend,代码行数:12,代码来源:User.java

示例5: getRace

/**
 * @return User's race
 */
@ManyToOne(fetch = FetchType.LAZY)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@JoinColumn(name = "race_id", nullable = true)
@ForeignKey(name="fk_user_race_id")
public Race getRace() {
	return this.race;
}
 
开发者ID:MobileManAG,项目名称:Project-H-Backend,代码行数:10,代码来源:User.java

示例6: getStreet

/**
 * @return the street associated to this house number
 */
 @ManyToOne(fetch = FetchType.LAZY)//TODO HN
 @JoinColumn(nullable = false, name = "street")
 @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
 @Index(name = "housenumberstreetindex")
public OpenStreetMap getStreet() {
	return street;
}
 
开发者ID:gisgraphy,项目名称:gisgraphy,代码行数:10,代码来源:HouseNumber.java

示例7: getWeights

/**
 * @return User's weight in time
 */
@ElementCollection
@CollectionTable(name = "user_weight", joinColumns = @JoinColumn(name = "user_id"))
@OrderBy("date")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public List<UserWeight> getWeights() {
	return this.weights;
}
 
开发者ID:MobileManAG,项目名称:Project-H-Backend,代码行数:10,代码来源:User.java

示例8: getAlternateNames

/**
    * @return A list of the {@link AlternateName}s for this GisFeature
    */
   @OneToMany(cascade = { CascadeType.ALL }, mappedBy = "gisFeature")
   @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
   @Fetch(FetchMode.SELECT)
   public Set<AlternateName> getAlternateNames() {
return alternateNames;
   }
 
开发者ID:gisgraphy,项目名称:gisgraphy,代码行数:9,代码来源:GisFeature.java

示例9: getZipCodes

/**
    * @return the zip codes for the city
    */
@OneToMany(cascade = { CascadeType.ALL }, mappedBy = "gisFeature")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@Fetch(FetchMode.SELECT)
//TODO tests zip
public Set<ZipCode> getZipCodes() {
	return zipCodes;
}
 
开发者ID:gisgraphy,项目名称:gisgraphy,代码行数:10,代码来源:GisFeature.java

示例10: getGisFeature

/**
    * The GisFeature, the Alternate name refers to
    * 
    * @return the GisFeature, the AlternateName refers to
    */
   @ManyToOne(fetch = FetchType.LAZY)
   @JoinColumn(nullable = false, name = "gisFeature")
   @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
   @Index(name = "AlternatenameGisFeatureindex")
   public GisFeature getGisFeature() {
return gisFeature;
   }
 
开发者ID:gisgraphy,项目名称:gisgraphy,代码行数:12,代码来源:AlternateName.java

示例11: getEducation

/**
 * @return User's education
 */
@ManyToOne(fetch = FetchType.LAZY)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@JoinColumn(name = "education_id", nullable = true)
@ForeignKey(name="fk_user_education_id")
public Education getEducation() {
	return this.education;
}
 
开发者ID:MobileManAG,项目名称:Project-H-Backend,代码行数:10,代码来源:User.java

示例12: getSender

/**
 * @return Sender - owner of a message
 */
@ManyToOne(fetch = FetchType.LAZY, optional=false)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@JoinColumn(name = "sender_user_id", nullable = false, insertable=true, updatable=false)
@ForeignKey(name="fk_message_sender_user_id")
public User getSender() {
	return this.sender;
}
 
开发者ID:MobileManAG,项目名称:Project-H-Backend,代码行数:10,代码来源:Message.java

示例13: getReceiver

/**
 * @return Receiver - user who receives a message
 */
@ManyToOne(fetch = FetchType.LAZY, optional=false)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@JoinColumn(name = "receiver_user_id", nullable = false, insertable=true, updatable=false)
@ForeignKey(name="fk_message_receiver_user_id")
public User getReceiver() {
	return this.receiver;
}
 
开发者ID:MobileManAG,项目名称:Project-H-Backend,代码行数:10,代码来源:Message.java

示例14: getInReplyToMessage

/**
 * @return inReplyToMessage
 */
@ManyToOne(fetch = FetchType.LAZY, optional=true)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@JoinColumn(name = "in_reply_to_message_id", nullable = true, insertable=true, updatable=false)
@ForeignKey(name="fk_message_in_reply_to_message_id")
public Message getInReplyToMessage() {
	return this.inReplyToMessage;
}
 
开发者ID:MobileManAG,项目名称:Project-H-Backend,代码行数:10,代码来源:Message.java

示例15: getUserAccount

/**
 * @return userAccount
 */
@OneToOne(fetch = FetchType.LAZY, optional=true)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@JoinColumn(name = "user_account_id", nullable = true)
public UserAccount getUserAccount() {
	return this.userAccount;
}
 
开发者ID:MobileManAG,项目名称:Project-H-Backend,代码行数:9,代码来源:User.java


注:本文中的org.hibernate.annotations.CacheConcurrencyStrategy.NONSTRICT_READ_WRITE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。