當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。