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:net.groupbuy.entity.GiftItem.java
/** * ? * * @return */ @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(nullable = false, updatable = false) public Promotion getPromotion() { return promotion; }
From source file:com.lcw.one.modules.sys.entity.Log.java
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "create_by") @NotFound(action = NotFoundAction.IGNORE) public User getCreateBy() { return createBy; }
From source file:com.jeefuse.system.security.model.GsysRelRoleFunction.java
/** * ------------------------------------------------------------------------ * gsysRole//from w ww . j a v a 2s . c o m * ------------------------------------------------------------------------ * @generated */ @JoinColumn(name = "ROLE_ID", unique = false, nullable = false, insertable = true, updatable = true) @ManyToOne(fetch = FetchType.LAZY) public GsysRole getGsysRole() { return gsysRole; }
From source file:org.dspace.orm.entity.Item.java
@ManyToMany(fetch = FetchType.LAZY, cascade = CascadeType.DETACH) @JoinTable(name = "collection2item", joinColumns = { @JoinColumn(name = "item_id", nullable = false) }, inverseJoinColumns = { @JoinColumn(name = "collection_id", nullable = false) }) public List<Collection> getCollections() { return collections; }
From source file:org.dspace.orm.entity.ResourcePolicy.java
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "eperson_id", nullable = true) public Eperson getEperson() { return eperson; }
From source file:org.dspace.orm.entity.Bundle.java
@ManyToMany(fetch = FetchType.LAZY, cascade = CascadeType.DETACH) @JoinTable(name = "item2bundle", joinColumns = { @JoinColumn(name = "item_id", nullable = false) }, inverseJoinColumns = { @JoinColumn(name = "bundle_id", nullable = false) }) public List<Item> getItems() { return items; }
From source file:com.infinities.skyport.entity.RolePermission.java
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "ROLEID") public Role getRole() { return this.role; }
From source file:com.lcw.one.modules.sys.entity.Menu.java
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "parent_id") @NotFound(action = NotFoundAction.IGNORE) @NotNull public Menu getParent() { return parent; }
From source file:com.marand.thinkmed.medications.model.impl.MedicationIngredientLinkImpl.java
@Override @ManyToOne(targetEntity = MedicationIngredientImpl.class, fetch = FetchType.LAZY, optional = false) public MedicationIngredient getIngredient() { return ingredient; }
From source file:com.marand.thinkmed.medications.model.impl.MedicationRouteRelationImpl.java
@Override @ManyToOne(targetEntity = MedicationRouteImpl.class, fetch = FetchType.LAZY, optional = false) public MedicationRoute getChildRoute() { return childRoute; }