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:org.dspace.orm.entity.EpersonGroup.java
@OneToMany(fetch = FetchType.LAZY, mappedBy = "admin") public List<Collection> getOwnedCollections() { return ownerCollections; }
From source file:com.esoft.jdp2p.borrower.model.BorrowerAuthentication.java
@OneToOne(fetch = FetchType.LAZY) @JoinColumn(name = "house_info") public AuthenticationMaterials getHouseInfo() { return this.houseInfo; }
From source file:com.dhenton9000.birt.persistence.entities.Customers.java
/** * @return the orders/*from www . ja va 2 s .co m*/ */ @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) @JoinColumn(name = "CUSTOMERNUMBER") @JsonManagedReference public Set<Orders> getOrders() { return orders; }
From source file:gov.nih.nci.caarray.domain.project.Project.java
/** * Gets the files./*from w w w. j a va 2 s . c o m*/ * * @return the files */ @OneToMany(mappedBy = "project", fetch = FetchType.LAZY) @Sort(type = SortType.NATURAL) @Where(clause = "status = 'IMPORTING'") @Filter(name = Experiment.SECURITY_FILTER_NAME, condition = Experiment.FILES_FILTER) private SortedSet<CaArrayFile> getImportingFileSet() { return this.importingFiles; }
From source file:edu.harvard.med.screensaver.model.AttachedFile.java
/** * Get the file contents./*from w ww .ja va2s. c om*/ * @return the file contents */ @Lob @Basic(fetch = FetchType.LAZY) @Column(nullable = false, updatable = false) @Type(type = "org.hibernate.type.PrimitiveByteArrayBlobType") public byte[] getFileContents() { return _fileContents; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.ExperimentPE.java
@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "entity") @Cascade(value = org.hibernate.annotations.CascadeType.DELETE_ORPHAN) @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) @IndexedEmbedded(prefix = SearchFieldConstants.PREFIX_PROPERTIES) @Fetch(FetchMode.SUBSELECT)//from ww w. j a va 2s .c o m private Set<ExperimentPropertyPE> getExperimentProperties() { return properties; }
From source file:com.eryansky.entity.base.User.java
@ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.LAZY) @JoinTable(name = "T_BASE_USER_ORGAN", joinColumns = { @JoinColumn(name = "USER_ID") }, inverseJoinColumns = { @JoinColumn(name = "ORGAN_ID") }) @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region = CacheConstants.HIBERNATE_CACHE_BASE) public List<Organ> getOrgans() { return organs; }
From source file:com.dp2345.entity.SetProduct.java
/** * ? * * @return */ @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(nullable = false) public Shop getShop() { return shop; }
From source file:edu.duke.cabig.c3pr.domain.Participant.java
/** * Gets the identifiers.// w w w. java 2 s . c o m * * @return the identifiers */ @OneToMany(fetch = FetchType.LAZY, orphanRemoval = true) @Cascade({ CascadeType.ALL }) @JoinColumn(name = "PRT_ID") @Where(clause = "retired_indicator = 'false'") @OrderBy public List<Identifier> getIdentifiers() { return identifiers; }
From source file:gov.nih.nci.caarray.domain.hybridization.Hybridization.java
/** * Gets the factorValues.//w w w . j av a2 s .c o m * * @return the factorValues */ @OneToMany(mappedBy = MAPPED_BY, fetch = FetchType.LAZY) @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.DELETE }) public Set<AbstractFactorValue> getFactorValues() { return this.factorValues; }