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:it.jugpadova.po.JUG.java
@Lob @Basic(fetch = FetchType.LAZY) public byte[] getCertificateTemplate() { return certificateTemplate; }
From source file:gov.nih.nci.protexpress.domain.experiment.ExperimentRun.java
/** * Gets the experiment./*w w w . j ava 2 s. c om*/ * * @return the experiment */ @ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.PERSIST) @JoinColumn(name = "experiment_id", nullable = false) @Valid public Experiment getExperiment() { return this.experiment; }
From source file:edu.ku.brc.specify.datamodel.GroupPerson.java
/** * AgentID of member (member must be of type Person) *///from w ww.j a v a 2 s . c om @ManyToOne(cascade = {}, fetch = FetchType.LAZY) @JoinColumn(name = "MemberID", unique = false, nullable = false, insertable = true, updatable = true) public Agent getMember() { return this.member; }
From source file:net.shopxx.entity.ShippingMethod.java
@OneToMany(mappedBy = "shippingMethod", fetch = FetchType.LAZY) public Set<Order> getOrders() { return orders; }
From source file:fr.mael.microrss.domain.User.java
@OneToOne(mappedBy = "user", fetch = FetchType.LAZY) public UserConfig getUserConfig() { return userConfig; }
From source file:com.sccl.attech.modules.sys.entity.Role.java
@ManyToMany(fetch = FetchType.LAZY) @JoinTable(name = "sys_role_menu", joinColumns = { @JoinColumn(name = "role_id") }, inverseJoinColumns = { @JoinColumn(name = "menu_id") }) @Where(clause = "del_flag='" + DEL_FLAG_NORMAL + "'") @OrderBy("id")//from w w w . ja v a 2 s . c o m @Fetch(FetchMode.SUBSELECT) @NotFound(action = NotFoundAction.IGNORE) @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) @JsonIgnore public List<Menu> getMenuList() { return menuList; }
From source file:com.hmsinc.epicenter.model.analysis.classify.Classification.java
/** * @return the classifier//from www . j a v a 2 s . c om */ @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "ID_CLASSIFIER", unique = false, nullable = false, insertable = true, updatable = true) @ForeignKey(name = "FK_CLASSIFICATION_1") public Classifier getClassifier() { return classifier; }
From source file:org.openhie.openempi.model.User.java
@ManyToMany(fetch = FetchType.LAZY) @JoinTable(name = "user_role", joinColumns = { @JoinColumn(name = "user_id") }, inverseJoinColumns = @JoinColumn(name = "role_id")) public Set<Role> getRoles() { return roles; }
From source file:com.ravipatel.statusserver.models.User.java
@JsonIgnore @OneToMany(fetch = FetchType.LAZY, mappedBy = "user") public Set<UserRole> getUserRoles() { return this.userRoles; }
From source file:gov.nih.nci.cabig.caaers.domain.SiteResearchStaff.java
/** * Gets the site research staff roles./*from w w w. ja va 2 s . c o m*/ * * @return the site research staff roles */ @OneToMany(mappedBy = "siteResearchStaff", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<SiteResearchStaffRole> getSiteResearchStaffRoles() { return siteResearchStaffRoles; }