当前位置: 首页>>代码示例>>Java>>正文


Java LazyCollection类代码示例

本文整理汇总了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;
}
 
开发者ID:chesterbr,项目名称:tf-bmac-ime-usp,代码行数:8,代码来源:Aula.java

示例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;}
 
开发者ID:awslabs,项目名称:aws-photosharing-example,代码行数:9,代码来源:User.java

示例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;
}
 
开发者ID:hmsiccbl,项目名称:screensaver,代码行数:13,代码来源:SilencingReagent.java

示例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;
}
 
开发者ID:chesterbr,项目名称:tf-bmac-ime-usp,代码行数:8,代码来源:Passo.java

示例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;
}
 
开发者ID:tilioteo,项目名称:hypothesis,代码行数:9,代码来源:Branch.java

示例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;
}
 
开发者ID:tilioteo,项目名称:hypothesis,代码行数:9,代码来源:Task.java

示例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;
}
 
开发者ID:tilioteo,项目名称:hypothesis,代码行数:11,代码来源:Group.java

示例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;
}
 
开发者ID:tilioteo,项目名称:hypothesis,代码行数:9,代码来源:Pack.java

示例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;
}
 
开发者ID:tilioteo,项目名称:hypothesis,代码行数:8,代码来源:User.java

示例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;
}
 
开发者ID:tilioteo,项目名称:hypothesis,代码行数:11,代码来源:User.java

示例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;
}
 
开发者ID:tilioteo,项目名称:hypothesis,代码行数:9,代码来源:Test.java

示例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;
}
 
开发者ID:tilioteo,项目名称:hypothesis,代码行数:9,代码来源:Test.java

示例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;
}
 
开发者ID:NCIP,项目名称:caarray,代码行数:11,代码来源:ArrayDesignDetails.java

示例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;
}
 
开发者ID:NCIP,项目名称:caarray,代码行数:11,代码来源:ArrayDesignDetails.java

示例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;
}
 
开发者ID:NCIP,项目名称:caarray,代码行数:11,代码来源:ArrayDesignDetails.java


注:本文中的org.hibernate.annotations.LazyCollection类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。