本文整理汇总了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;
}