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