本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}