List of usage examples for javax.persistence FetchType LAZY
FetchType LAZY
To view the source code for javax.persistence FetchType LAZY.
Click Source Link
From source file:com.jeefuse.system.code.model.GsysCodevalue.java
/** * ------------------------------------------------------------------------ * gsysCode//from ww w . j a v a 2 s . co m * ------------------------------------------------------------------------ * @generated */ @JoinColumn(name = "CODE_CID", unique = false, nullable = false, insertable = true, updatable = true) @ManyToOne(fetch = FetchType.LAZY) public GsysCode getGsysCode() { return gsysCode; }
From source file:net.shopxx.entity.Admin.java
@NotEmpty @ManyToMany(fetch = FetchType.LAZY) @JoinTable(name = "xx_admin_role") public Set<Role> getRoles() { return roles; }
From source file:gov.nih.nci.cabig.caaers.domain.StudyOrganization.java
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "study_id", nullable = false) @Cascade(value = { CascadeType.DETACH }) public Study getStudy() { return study; }
From source file:com.jeefuse.system.code.model.GsysCode.java
/** * ------------------------------------------------------------------------ * gsysCodevalues/*from www . j av a2 s.c o m*/ * ------------------------------------------------------------------------ * @generated */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "gsysCode", cascade = CascadeType.REMOVE) public List<GsysCodevalue> getGsysCodevalues() { if (this.gsysCodevalues == null) { this.gsysCodevalues = new ArrayList<GsysCodevalue>(); } return gsysCodevalues; }
From source file:org.dspace.orm.entity.Bitstream.java
@ManyToMany(fetch = FetchType.LAZY, cascade = { CascadeType.ALL }) @JoinTable(name = "bundle2bitstream", joinColumns = { @JoinColumn(name = "bitstream_id") }, inverseJoinColumns = { @JoinColumn(name = "bundle_id") }) public List<Bundle> getBundles() { return bundles; }
From source file:gov.nih.nci.protexpress.domain.protocol.ProtocolApplication.java
/** * Gets the experimentRun.// ww w. j ava2 s.com * * @return the experimentRun. */ @ManyToOne(fetch = FetchType.LAZY) @NotNull @JoinColumn(name = "experiment_run_id") public ExperimentRun getExperimentRun() { return this.experimentRun; }
From source file:com.green.modules.sys.entity.Menu.java
@OneToMany(mappedBy = "parent", fetch = FetchType.LAZY) @Where(clause = "del_flag='" + DEL_FLAG_NORMAL + "'") @OrderBy(value = "sort") @Fetch(FetchMode.SUBSELECT)// w ww.ja v a 2 s. c o m @NotFound(action = NotFoundAction.IGNORE) @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public List<Menu> getChildList() { return childList; }
From source file:net.shopxx.entity.ShippingMethod.java
@OneToMany(mappedBy = "shippingMethod", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE) public Set<FreightConfig> getFreightConfigs() { return freightConfigs; }
From source file:com.dp2345.entity.ShopCategory.java
/** * ? * * @return */ @ManyToOne(fetch = FetchType.LAZY) public ShopCategory getParent() { return parent; }
From source file:com.impetus.ankush.common.domain.Node.java
/** * @return the configuration// w w w . j ava 2 s . com */ @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.REMOVE) @JoinColumns({ @JoinColumn(name = "clusterId", referencedColumnName = "clusterId"), @JoinColumn(name = "host", referencedColumnName = "publicIp") }) public List<Configuration> getConfiguration() { return configuration; }