本文整理匯總了Java中org.hibernate.annotations.LazyCollection類的典型用法代碼示例。如果您正苦於以下問題:Java LazyCollection類的具體用法?Java LazyCollection怎麽用?Java LazyCollection使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
LazyCollection類屬於org.hibernate.annotations包,在下文中一共展示了LazyCollection類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getPassos
import org.hibernate.annotations.LazyCollection; //導入依賴的package包/類
@LazyCollection(LazyCollectionOption.FALSE)
@OneToMany(mappedBy="aula", cascade=CascadeType.ALL)
@JoinColumn(name="aula_id")
@OrderBy("ordem")
public List<Passo> getPassos() {
return passos;
}
示例2: getRoles
import org.hibernate.annotations.LazyCollection; //導入依賴的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;}
示例3: getDuplexWells
import org.hibernate.annotations.LazyCollection; //導入依賴的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;
}
示例4: getParametros
import org.hibernate.annotations.LazyCollection; //導入依賴的package包/類
@LazyCollection(LazyCollectionOption.FALSE)
@OneToMany(mappedBy = "passo", cascade = CascadeType.ALL)
@JoinColumn(name = "passo_id")
@OrderBy("ordem")
public List<Parametro> getParametros() {
return parametros;
}
示例5: getTasks
import org.hibernate.annotations.LazyCollection; //導入依賴的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;
}
示例6: getSlides
import org.hibernate.annotations.LazyCollection; //導入依賴的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;
}
示例7: getUsers
import org.hibernate.annotations.LazyCollection; //導入依賴的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;
}
示例8: getBranches
import org.hibernate.annotations.LazyCollection; //導入依賴的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;
}
示例9: getRoles
import org.hibernate.annotations.LazyCollection; //導入依賴的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;
}
示例10: getGroups
import org.hibernate.annotations.LazyCollection; //導入依賴的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;
}
示例11: getEvents
import org.hibernate.annotations.LazyCollection; //導入依賴的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;
}
示例12: getScores
import org.hibernate.annotations.LazyCollection; //導入依賴的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;
}
示例13: getFeatures
import org.hibernate.annotations.LazyCollection; //導入依賴的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;
}
示例14: getProbes
import org.hibernate.annotations.LazyCollection; //導入依賴的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;
}
示例15: getLogicalProbes
import org.hibernate.annotations.LazyCollection; //導入依賴的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;
}