List of usage examples for org.hibernate.annotations LazyCollectionOption TRUE
LazyCollectionOption TRUE
To view the source code for org.hibernate.annotations LazyCollectionOption TRUE.
Click Source Link
From source file:com.bgh.myopeninvoice.db.model.RolesEntity.java
License:Apache License
@LazyCollection(LazyCollectionOption.TRUE) @OneToMany(mappedBy = "rolesByRoleId") public Collection<UserRoleEntity> getUserRolesByRoleId() { return userRolesByRoleId; }
From source file:de.dktk.dd.rpb.core.domain.ctms.Organisation.java
License:Open Source License
@LazyCollection(LazyCollectionOption.TRUE) @OneToMany(fetch = FetchType.LAZY, mappedBy = "organisation") public List<StudyOrganisation> getStudyOrganisations() { return this.studyOrganisations; }
From source file:edu.harvard.med.screensaver.model.libraries.SilencingReagent.java
License:Open Source License
@ManyToMany(cascade = {}, fetch = FetchType.LAZY) @JoinTable(joinColumns = @JoinColumn(name = "silencing_reagent_id"), inverseJoinColumns = @JoinColumn(name = "wellId")) @Cascade({})//from ww w . j a v a2 s.c o m @LazyCollection(LazyCollectionOption.TRUE) @ToMany(unidirectional = true, hasNonconventionalMutation = true) public Set<Well> getDuplexWells() { return _duplexWells; }
From source file:gov.nih.nci.caarray.domain.sample.Source.java
License:BSD License
/** * Gets the providers./*from w w w . ja v a 2 s.co m*/ * * @return the providers */ @ManyToMany(fetch = FetchType.LAZY) @LazyCollection(LazyCollectionOption.TRUE) @JoinTable(name = "sourceprovider", joinColumns = { @javax.persistence.JoinColumn(name = DEFAULT_FK_ID) }, inverseJoinColumns = { @javax.persistence.JoinColumn(name = "contact_id") }) @ForeignKey(name = "sourceprovider_source_fk", inverseName = "sourceprovider_provider_fk") @BatchSize(size = AbstractCaArrayObject.DEFAULT_BATCH_SIZE) @Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE) public Set<AbstractContact> getProviders() { return providers; }
From source file:ru.cti.oss.cbe.resource.Resource.java
@org.hibernate.annotations.CollectionOfElements(fetch = javax.persistence.FetchType.EAGER) @LazyCollection(LazyCollectionOption.TRUE) @Column(name = "element", length = 3800, nullable = false) @org.hibernate.annotations.MapKeyManyToMany @javax.persistence.JoinTable(name = "resource_i18n_description", joinColumns = { @javax.persistence.JoinColumn(name = "resource_id", nullable = false) }) @org.hibernate.annotations.MapKey(columns = @Column(name = "mapkey", nullable = false)) public java.util.Map<java.util.Locale, java.lang.String> getI18nDescription() { return this.i18nDescription; }
From source file:ru.cti.oss.cbe.resource.Resource.java
@org.hibernate.annotations.CollectionOfElements(fetch = javax.persistence.FetchType.EAGER) @LazyCollection(LazyCollectionOption.TRUE) @org.hibernate.annotations.MapKeyManyToMany @javax.persistence.JoinTable(name = "resource_i18n_name", joinColumns = { @javax.persistence.JoinColumn(name = "resource_id", nullable = false) }) @org.hibernate.annotations.MapKey(columns = @Column(name = "mapkey", nullable = false)) @Column(name = "element") public java.util.Map<java.util.Locale, java.lang.String> getI18nName() { return this.i18nName; }