本文整理匯總了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例10: getStudyOrganisations
@LazyCollection(LazyCollectionOption.TRUE)
@OneToMany(fetch = FetchType.LAZY, mappedBy = "organisation")
public List<StudyOrganisation> getStudyOrganisations() {
return this.studyOrganisations;
}