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


Java LazyCollectionOption.TRUE屬性代碼示例

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


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

示例1: getDuplexWells

@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,代碼行數:12,代碼來源:SilencingReagent.java

示例2: getTasks

@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,代碼行數:8,代碼來源:Branch.java

示例3: getSlides

@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,代碼行數:8,代碼來源:Task.java

示例4: getUsers

@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,代碼行數:10,代碼來源:Group.java

示例5: getBranches

@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,代碼行數:8,代碼來源:Pack.java

示例6: getGroups

@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,代碼行數:10,代碼來源:User.java

示例7: getEvents

@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,代碼行數:8,代碼來源:Test.java

示例8: getScores

@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,代碼行數:8,代碼來源:Test.java

示例9: getProviders

/**
 * Gets the providers.
 *
 * @return the providers
 */
@ManyToMany(fetch = FetchType.LAZY)
@LazyCollection(LazyCollectionOption.TRUE)
@JoinTable(
        name = "sourceprovider",
        joinColumns = { @javax.persistence.JoinColumn(name = DEFAULT_FK_ID) },
        inverseJoinColumns = { @javax.persistence.JoinColumn(name = "contact_id") }
)
@ForeignKey(name = "sourceprovider_source_fk", inverseName = "sourceprovider_provider_fk")
@BatchSize(size = AbstractCaArrayObject.DEFAULT_BATCH_SIZE)
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
public Set<AbstractContact> getProviders() {
    return providers;
}
 
開發者ID:NCIP,項目名稱:caarray,代碼行數:18,代碼來源:Source.java

示例10: getStudyOrganisations

@LazyCollection(LazyCollectionOption.TRUE)
@OneToMany(fetch = FetchType.LAZY, mappedBy = "organisation")
public List<StudyOrganisation> getStudyOrganisations() {
    return this.studyOrganisations;
}
 
開發者ID:ddRPB,項目名稱:rpb,代碼行數:5,代碼來源:Organisation.java


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