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.esoft.jdp2p.borrower.model.BorrowerAuthentication.java
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "verified_user") public User getVerifiedUser() { return this.verifiedUser; }
From source file:com.eryansky.entity.base.Role.java
@ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.LAZY) // ,????/*from w ww . jav a 2 s. c o m*/ @JoinTable(name = "T_BASE_USER_ROLE", joinColumns = { @JoinColumn(name = "ROLE_ID") }, inverseJoinColumns = { @JoinColumn(name = "USER_ID") }) @OrderBy("id") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region = CacheConstants.HIBERNATE_CACHE_BASE) public List<User> getUsers() { return users; }
From source file:com.ravipatel.statusserver.models.User.java
@JsonIgnore @OneToMany(fetch = FetchType.LAZY, mappedBy = "user") public Set<LicenseUserCompany> getLicenseUserCompanies() { return this.licenseUserCompanies; }
From source file:com.dp2345.entity.ArticleCategory.java
/** * ? * * @return */ @ManyToOne(fetch = FetchType.LAZY) public ArticleCategory getParent() { return parent; }
From source file:edu.ku.brc.specify.datamodel.Author.java
/** * * Agent record representing the Author *///from ww w. j a v a 2 s . c o m @ManyToOne(cascade = {}, fetch = FetchType.LAZY) @JoinColumn(name = "AgentID", unique = false, nullable = false, insertable = true, updatable = true) public Agent getAgent() { return this.agent; }
From source file:com.aistor.modules.sys.entity.Role.java
@ManyToMany(fetch = FetchType.LAZY) @JoinTable(name = "sys_role_category", joinColumns = { @JoinColumn(name = "role_id") }, inverseJoinColumns = { @JoinColumn(name = "category_id") }) @Where(clause = "del_flag='" + DEL_FLAG_NORMAL + "'") @OrderBy("id")/* w w w. j a va2 s . c o m*/ @Fetch(FetchMode.SUBSELECT) @NotFound(action = NotFoundAction.IGNORE) @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public List<Category> getCategoryList() { return categoryList; }
From source file:edu.scripps.fl.pubchem.db.PCAssayResult.java
@ManyToOne(optional = true, fetch = FetchType.LAZY, cascade = { CascadeType.ALL }) public PCAssayColumn getPrimaryColumn() { return primaryColumn; }
From source file:edu.ku.brc.specify.datamodel.PrepType.java
/** * // ww w . jav a 2 s .c om */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "prepType") @Cascade({ CascadeType.MERGE, CascadeType.LOCK }) public Set<AttributeDef> getAttributeDefs() { return this.attributeDefs; }
From source file:com.impetus.ankush.common.domain.Cluster.java
/** * @return the operations/*from w w w .ja v a 2 s.com*/ */ @OneToMany(mappedBy = CLUSTER_ID, fetch = FetchType.LAZY, cascade = CascadeType.REMOVE) @JsonIgnore public List<Operation> getOperations() { return operations; }
From source file:net.groupbuy.entity.Receiver.java
/** * ? * * @return */ @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(nullable = false, updatable = false) public Member getMember() { return member; }