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:gov.nih.nci.caarray.domain.project.Project.java
/** * Gets all the files./*from w w w. j a va 2s . c om*/ * * @return the files */ @OneToMany(mappedBy = "project", fetch = FetchType.LAZY, cascade = CascadeType.ALL) @Sort(type = SortType.NATURAL) @Filter(name = Experiment.SECURITY_FILTER_NAME, condition = Experiment.FILES_FILTER) public SortedSet<CaArrayFile> getFiles() { return this.files; }
From source file:onl.netfishers.netshot.device.DeviceGroup.java
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "deviceGroup") public List<CheckGroupSoftwareTask> getCheckSoftwareComplianceTasks() { return checkSoftwareComplianceTasks; }
From source file:com.lingxiang2014.entity.Article.java
@NotNull @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(nullable = false) public ArticleCategory getArticleCategory() { return articleCategory; }
From source file:edu.ku.brc.specify.datamodel.SpAppResourceDir.java
@ManyToOne(cascade = {}, fetch = FetchType.LAZY) @JoinColumn(name = "CollectionID", unique = false, nullable = true, insertable = true, updatable = true) public Collection getCollection() { return this.collection; }
From source file:edu.ku.brc.specify.datamodel.Discipline.java
/** * *//* ww w . java2 s . co m*/ @ManyToOne(cascade = {}, fetch = FetchType.LAZY) @JoinColumn(name = "DataTypeID", nullable = false) public DataType getDataType() { return this.dataType; }
From source file:com.evolveum.midpoint.repo.sql.data.common.container.RAssignment.java
@Id @org.hibernate.annotations.ForeignKey(name = "fk_assignment_owner") @MapsId("owner")/*w w w . j ava 2 s .co m*/ @ManyToOne(fetch = FetchType.LAZY) // @JoinTable(foreignKey = @ForeignKey(name = "fk_assignment_owner")) @NotQueryable public RObject getOwner() { return owner; }
From source file:com.hmsinc.epicenter.model.workflow.Event.java
/** * @return the disposition// w ww . j av a2 s .c om */ @ManyToOne(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY) @JoinColumn(name = "ID_EVENT_DISPOSITION", unique = false, nullable = false, insertable = true, updatable = true) @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) @ForeignKey(name = "FK_EVENT_3") public EventDisposition getDisposition() { return disposition; }
From source file:net.groupbuy.entity.OrderItem.java
/** * ??//ww w. ja v a 2 s .c o m * * @return ? */ @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "orders", nullable = false, updatable = false) public Order getOrder() { return order; }
From source file:com.infinities.keystone4j.model.identity.User.java
@OneToMany(fetch = FetchType.LAZY, mappedBy = "user", cascade = CascadeType.ALL) @JsonView(Views.All.class) public Set<UserGroupMembership> getUserGroupMemberships() { return userGroupMemberships; }
From source file:edu.duke.cabig.c3pr.domain.Organization.java
/** * These are the identifiers assigned BY this organization to other entities like * study, person or maybe even organization. * @return//from w w w.j a va2 s .c om */ @OneToMany(mappedBy = "healthcareSite", fetch = FetchType.LAZY) // @Cascade(value = { CascadeType.ALL}) public List<OrganizationAssignedIdentifier> getIdentifiers() { return identifiers; }