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