當前位置: 首頁>>代碼示例>>Java>>正文


Java LazyCollectionOption類代碼示例

本文整理匯總了Java中org.hibernate.annotations.LazyCollectionOption的典型用法代碼示例。如果您正苦於以下問題:Java LazyCollectionOption類的具體用法?Java LazyCollectionOption怎麽用?Java LazyCollectionOption使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


LazyCollectionOption類屬於org.hibernate.annotations包,在下文中一共展示了LazyCollectionOption類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getPassos

import org.hibernate.annotations.LazyCollectionOption; //導入依賴的package包/類
@LazyCollection(LazyCollectionOption.FALSE)
@OneToMany(mappedBy="aula", cascade=CascadeType.ALL)
@JoinColumn(name="aula_id")
@OrderBy("ordem")
public List<Passo> getPassos() {
	return passos;
}
 
開發者ID:chesterbr,項目名稱:tf-bmac-ime-usp,代碼行數:8,代碼來源:Aula.java

示例2: getRoles

import org.hibernate.annotations.LazyCollectionOption; //導入依賴的package包/類
@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,代碼行數:9,代碼來源:User.java

示例3: getDuplexWells

import org.hibernate.annotations.LazyCollectionOption; //導入依賴的package包/類
@ManyToMany(cascade={}, fetch=FetchType.LAZY)
@JoinTable(
  [email protected](name="silencing_reagent_id"),
  [email protected](name="wellId")
)
@Cascade({})
@LazyCollection(LazyCollectionOption.TRUE)
@ToMany(unidirectional=true, hasNonconventionalMutation=true)
public Set<Well> getDuplexWells()
{
  return _duplexWells;
}
 
開發者ID:hmsiccbl,項目名稱:screensaver,代碼行數:13,代碼來源:SilencingReagent.java

示例4: getParametros

import org.hibernate.annotations.LazyCollectionOption; //導入依賴的package包/類
@LazyCollection(LazyCollectionOption.FALSE)
@OneToMany(mappedBy = "passo", cascade = CascadeType.ALL)
@JoinColumn(name = "passo_id")
@OrderBy("ordem")
public List<Parametro> getParametros() {
	return parametros;
}
 
開發者ID:chesterbr,項目名稱:tf-bmac-ime-usp,代碼行數:8,代碼來源:Passo.java

示例5: getTasks

import org.hibernate.annotations.LazyCollectionOption; //導入依賴的package包/類
@ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
@JoinTable(name = TableConstants.BRANCH_TASK_TABLE, joinColumns = @JoinColumn(name = FieldConstants.BRANCH_ID) , inverseJoinColumns = @JoinColumn(name = FieldConstants.TASK_ID) )
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@LazyCollection(LazyCollectionOption.TRUE)
@OrderColumn(name = FieldConstants.RANK)
public List<Task> getTasks() {
	return tasks;
}
 
開發者ID:tilioteo,項目名稱:hypothesis,代碼行數:9,代碼來源:Branch.java

示例6: getSlides

import org.hibernate.annotations.LazyCollectionOption; //導入依賴的package包/類
@ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
@JoinTable(name = TableConstants.TASK_SLIDE_TABLE, joinColumns = @JoinColumn(name = FieldConstants.TASK_ID), inverseJoinColumns = @JoinColumn(name = FieldConstants.SLIDE_ID))
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@LazyCollection(LazyCollectionOption.TRUE)
@OrderColumn(name = FieldConstants.RANK)
public List<Slide> getSlides() {
	return slides;
}
 
開發者ID:tilioteo,項目名稱:hypothesis,代碼行數:9,代碼來源:Task.java

示例7: getUsers

import org.hibernate.annotations.LazyCollectionOption; //導入依賴的package包/類
@ManyToMany(targetEntity = User.class/*
										 * , cascade = {CascadeType.PERSIST,
										 * CascadeType.MERGE }
										 */)
@JoinTable(name = TableConstants.GROUP_USER_TABLE, joinColumns = @JoinColumn(name = FieldConstants.GROUP_ID), inverseJoinColumns = @JoinColumn(name = FieldConstants.USER_ID))
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@LazyCollection(LazyCollectionOption.TRUE)
public Set<User> getUsers() {
	return users;
}
 
開發者ID:tilioteo,項目名稱:hypothesis,代碼行數:11,代碼來源:Group.java

示例8: getBranches

import org.hibernate.annotations.LazyCollectionOption; //導入依賴的package包/類
@ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
@JoinTable(name = TableConstants.PACK_BRANCH_TABLE, joinColumns = @JoinColumn(name = FieldConstants.PACK_ID), inverseJoinColumns = @JoinColumn(name = FieldConstants.BRANCH_ID))
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@LazyCollection(LazyCollectionOption.TRUE)
@OrderColumn(name = FieldConstants.RANK)
public List<Branch> getBranches() {
	return branches;
}
 
開發者ID:tilioteo,項目名稱:hypothesis,代碼行數:9,代碼來源:Pack.java

示例9: getRoles

import org.hibernate.annotations.LazyCollectionOption; //導入依賴的package包/類
@ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
@JoinTable(name = TableConstants.USER_ROLE_TABLE, joinColumns = @JoinColumn(name = FieldConstants.USER_ID), inverseJoinColumns = @JoinColumn(name = FieldConstants.ROLE_ID))
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@LazyCollection(LazyCollectionOption.FALSE)
public Set<Role> getRoles() {
	return roles;
}
 
開發者ID:tilioteo,項目名稱:hypothesis,代碼行數:8,代碼來源:User.java

示例10: getGroups

import org.hibernate.annotations.LazyCollectionOption; //導入依賴的package包/類
@ManyToMany(/*
			 * targetEntity = Group.class, cascade = { CascadeType.PERSIST,
			 * CascadeType.MERGE }
			 */)
@JoinTable(name = TableConstants.GROUP_USER_TABLE, joinColumns = @JoinColumn(name = FieldConstants.USER_ID), inverseJoinColumns = @JoinColumn(name = FieldConstants.GROUP_ID))
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@LazyCollection(LazyCollectionOption.TRUE)
public Set<Group> getGroups() {
	return groups;
}
 
開發者ID:tilioteo,項目名稱:hypothesis,代碼行數:11,代碼來源:User.java

示例11: getEvents

import org.hibernate.annotations.LazyCollectionOption; //導入依賴的package包/類
@OneToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
@JoinTable(name = TableConstants.TEST_EVENT_TABLE, joinColumns = @JoinColumn(name = FieldConstants.TEST_ID), inverseJoinColumns = @JoinColumn(name = FieldConstants.EVENT_ID))
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@LazyCollection(LazyCollectionOption.TRUE)
@OrderColumn(name = FieldConstants.RANK)
public List<Event> getEvents() {
	return events;
}
 
開發者ID:tilioteo,項目名稱:hypothesis,代碼行數:9,代碼來源:Test.java

示例12: getScores

import org.hibernate.annotations.LazyCollectionOption; //導入依賴的package包/類
@OneToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
@JoinTable(name = TableConstants.TEST_SCORE_TABLE, joinColumns = @JoinColumn(name = FieldConstants.TEST_ID) , inverseJoinColumns = @JoinColumn(name = FieldConstants.SCORE_ID) )
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@LazyCollection(LazyCollectionOption.TRUE)
@OrderColumn(name = FieldConstants.RANK)
public List<Score> getScores() {
	return scores;
}
 
開發者ID:tilioteo,項目名稱:hypothesis,代碼行數:9,代碼來源:Test.java

示例13: getFeatures

import org.hibernate.annotations.LazyCollectionOption; //導入依賴的package包/類
/**
 * @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,代碼行數:11,代碼來源:ArrayDesignDetails.java

示例14: getProbes

import org.hibernate.annotations.LazyCollectionOption; //導入依賴的package包/類
/**
 * @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,代碼行數:11,代碼來源:ArrayDesignDetails.java

示例15: getLogicalProbes

import org.hibernate.annotations.LazyCollectionOption; //導入依賴的package包/類
/**
 * @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,代碼行數:11,代碼來源:ArrayDesignDetails.java


注:本文中的org.hibernate.annotations.LazyCollectionOption類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。