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


Java LazyCollectionOption.EXTRA属性代码示例

本文整理汇总了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;}
 
开发者ID:awslabs,项目名称:aws-photosharing-example,代码行数:8,代码来源:User.java

示例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;
}
 
开发者ID:NCIP,项目名称:caarray,代码行数:10,代码来源:ArrayDesignDetails.java

示例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;
}
 
开发者ID:NCIP,项目名称:caarray,代码行数:10,代码来源:ArrayDesignDetails.java

示例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;
}
 
开发者ID:NCIP,项目名称:caarray,代码行数:10,代码来源:ArrayDesignDetails.java

示例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;
}
 
开发者ID:NCIP,项目名称:caarray,代码行数:10,代码来源:ArrayDesignDetails.java

示例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;
}
 
开发者ID:NCIP,项目名称:caarray,代码行数:17,代码来源:DesignElementList.java

示例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;
}
 
开发者ID:maxdelo77,项目名称:replyit-master-3.2-final,代码行数:11,代码来源:CompanyDTO.java

示例8: getComments

@OneToMany(mappedBy = "album")
@LazyCollection(LazyCollectionOption.EXTRA)
public List<Comment> getComments() {return comment;}
 
开发者ID:awslabs,项目名称:aws-photosharing-example,代码行数:3,代码来源:Album.java

示例9: getShares

@OneToMany(mappedBy = "album", orphanRemoval=true)    
@LazyCollection(LazyCollectionOption.EXTRA)
public List<Share> getShares() {return shares;}
 
开发者ID:awslabs,项目名称:aws-photosharing-example,代码行数:3,代码来源:Album.java

示例10: getMedia

@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)  
@ManyToMany(fetch = FetchType.LAZY, mappedBy = "albums", cascade=CascadeType.PERSIST)    
public List<Media> getMedia() {return media;}
 
开发者ID:awslabs,项目名称:aws-photosharing-example,代码行数:4,代码来源:Album.java

示例11: getMedia

@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@OneToMany(mappedBy = "user", orphanRemoval=true, fetch=FetchType.LAZY, cascade=CascadeType.ALL)
public List<Media> getMedia() {return media;}
 
开发者ID:awslabs,项目名称:aws-photosharing-example,代码行数:4,代码来源:User.java

示例12: getShares

@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@OneToMany(mappedBy = "user", orphanRemoval=true, fetch=FetchType.LAZY, cascade=CascadeType.ALL)
public List<Share> getShares() {return shares;}
 
开发者ID:awslabs,项目名称:aws-photosharing-example,代码行数:4,代码来源:User.java

示例13: getAlbums

@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@OneToMany(mappedBy = "user", orphanRemoval=true, fetch=FetchType.LAZY, cascade=CascadeType.ALL)
public List<Album> getAlbums() {return albums;}
 
开发者ID:awslabs,项目名称:aws-photosharing-example,代码行数:4,代码来源:User.java

示例14: getUsers

@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@ManyToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy="roles")	
public Set<User> getUsers() {return this._users;}
 
开发者ID:awslabs,项目名称:aws-photosharing-example,代码行数:4,代码来源:Role.java

示例15: getComments

@OneToMany(mappedBy = "media")
@LazyCollection(LazyCollectionOption.EXTRA)
public List<Comment> getComments() {return comment;}
 
开发者ID:awslabs,项目名称:aws-photosharing-example,代码行数:3,代码来源:Media.java


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