本文整理匯總了Java中org.hibernate.annotations.LazyCollectionOption.EXTRA屬性的典型用法代碼示例。如果您正苦於以下問題:Java LazyCollectionOption.EXTRA屬性的具體用法?Java LazyCollectionOption.EXTRA怎麽用?Java LazyCollectionOption.EXTRA使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類org.hibernate.annotations.LazyCollectionOption
的用法示例。
在下文中一共展示了LazyCollectionOption.EXTRA屬性的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getRoles
@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@ManyToMany(fetch=FetchType.LAZY, cascade=CascadeType.ALL)
@JoinTable(name = "role_mappings", joinColumns = {
@JoinColumn(name = "user_id", nullable = false, updatable = false) },
inverseJoinColumns = { @JoinColumn(name = "role",
nullable = false, updatable = false) })
public List<Role> getRoles() {return _roles;}
示例2: getFeatures
/**
* @return the features
*/
@Cascade(CascadeType.ALL)
@OneToMany(mappedBy = MAPPED_BY, fetch = FetchType.LAZY)
@LazyCollection(LazyCollectionOption.EXTRA)
@MaxSerializableSize(MAX_SERIALIZABLE_SIZE)
public Set<Feature> getFeatures() {
return features;
}
示例3: getProbes
/**
* @return the pysicalProbes
*/
@OneToMany(mappedBy = MAPPED_BY, fetch = FetchType.LAZY)
@Cascade(CascadeType.ALL)
@LazyCollection(LazyCollectionOption.EXTRA)
@MaxSerializableSize(MAX_SERIALIZABLE_SIZE)
public Set<PhysicalProbe> getProbes() {
return probes;
}
示例4: getLogicalProbes
/**
* @return the logicalProbes
*/
@OneToMany(mappedBy = MAPPED_BY, fetch = FetchType.LAZY)
@Cascade(CascadeType.ALL)
@LazyCollection(LazyCollectionOption.EXTRA)
@MaxSerializableSize(MAX_SERIALIZABLE_SIZE)
public Set<LogicalProbe> getLogicalProbes() {
return logicalProbes;
}
示例5: getProbeGroups
/**
* @return the probeGroups
*/
@OneToMany(mappedBy = MAPPED_BY, fetch = FetchType.LAZY)
@Cascade(CascadeType.ALL)
@LazyCollection(LazyCollectionOption.EXTRA)
@MaxSerializableSize(MAX_SERIALIZABLE_SIZE)
public Set<ProbeGroup> getProbeGroups() {
return probeGroups;
}
示例6: getDesignElements
/**
* @return the designElements
*/
@ManyToMany(fetch = FetchType.LAZY)
@IndexColumn(name = "designelement_index")
@JoinTable(
name = "designelementlist_designelement",
joinColumns = { @JoinColumn(name = "designelementlist_id", insertable = false, updatable = false) },
inverseJoinColumns = { @JoinColumn(name = "designelement_id", insertable = false, updatable = false) }
)
@ForeignKey(name = "deldedesignelementlist_fk", inverseName = "deldedesignelement_fk")
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@MaxSerializableSize(MAX_SERIALIZABLE_SIZE)
@LazyCollection(LazyCollectionOption.EXTRA)
public List<AbstractDesignElement> getDesignElements() {
return designElements;
}
示例7: getBaseUsers
/**
* Never use this method. It will run out of memory. Instead use UserDAS().findByEntityId
*
* @return
*/
@OneToMany(cascade = CascadeType.ALL, mappedBy = "company")
@LazyCollection(value = LazyCollectionOption.EXTRA)
@BatchSize(size = 100)
public Set<UserDTO> getBaseUsers() {
return this.baseUsers;
}
示例8: getComments
@OneToMany(mappedBy = "album")
@LazyCollection(LazyCollectionOption.EXTRA)
public List<Comment> getComments() {return comment;}
示例9: getShares
@OneToMany(mappedBy = "album", orphanRemoval=true)
@LazyCollection(LazyCollectionOption.EXTRA)
public List<Share> getShares() {return shares;}
示例10: getMedia
@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@ManyToMany(fetch = FetchType.LAZY, mappedBy = "albums", cascade=CascadeType.PERSIST)
public List<Media> getMedia() {return media;}
示例11: getMedia
@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@OneToMany(mappedBy = "user", orphanRemoval=true, fetch=FetchType.LAZY, cascade=CascadeType.ALL)
public List<Media> getMedia() {return media;}
示例12: getShares
@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@OneToMany(mappedBy = "user", orphanRemoval=true, fetch=FetchType.LAZY, cascade=CascadeType.ALL)
public List<Share> getShares() {return shares;}
示例13: getAlbums
@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@OneToMany(mappedBy = "user", orphanRemoval=true, fetch=FetchType.LAZY, cascade=CascadeType.ALL)
public List<Album> getAlbums() {return albums;}
示例14: getUsers
@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@ManyToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy="roles")
public Set<User> getUsers() {return this._users;}
示例15: getComments
@OneToMany(mappedBy = "media")
@LazyCollection(LazyCollectionOption.EXTRA)
public List<Comment> getComments() {return comment;}