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:edu.duke.cabig.c3pr.domain.BookRandomization.java
/** * Gets the book randomization entry internal. * //from w w w.j a v a 2 s. c o m * @return the book randomization entry internal */ @OneToMany(fetch = FetchType.LAZY, orphanRemoval = true) @JoinColumn(name = "rndm_id", nullable = false) @Cascade(value = { CascadeType.ALL }) @OrderBy("stratumGroup, position") public List<BookRandomizationEntry> getBookRandomizationEntryInternal() { return lazyListHelper.getInternalList(BookRandomizationEntry.class); }
From source file:org.dspace.orm.entity.FileExtension.java
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "bitstream_format_id", nullable = true) public BitstreamFormat getBitstreamFormat() { return bitstreamFormat; }
From source file:org.dspace.orm.entity.MetadataValue.java
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "metadata_field_id", nullable = true) public MetadataFieldRegistry getMetadataField() { return metadataField; }
From source file:net.groupbuy.entity.GiftItem.java
/** * ?? * * @return ? */ @JsonProperty @NotNull @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(nullable = false, updatable = false) public Product getGift() { return gift; }
From source file:ca.mcgill.cs.swevo.qualyzer.model.Transcript.java
/** * * @return//from ww w . j ava2 s . c o m */ @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, orphanRemoval = true, mappedBy = "transcript") @MapKey(name = "lineNumber") public Map<Integer, Timestamp> getTimestamps() { return fTimestamps; }
From source file:org.meruvian.yama.core.role.Role.java
@JsonIgnore @OneToMany(mappedBy = "role", cascade = { CascadeType.REMOVE }, fetch = FetchType.LAZY) public List<UserRole> getUsers() { return users; }
From source file:edu.duke.cabig.c3pr.domain.ContactMechanismBasedRecipient.java
/** * Gets the contact mechanisms internal. * /*from w w w . j av a2s. c om*/ * @return the contact mechanisms internal */ @OneToMany(fetch = FetchType.LAZY, orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @JoinColumn(name = "recipients_id") @Where(clause = "retired_indicator = 'false'") public List<ContactMechanism> getContactMechanismsInternal() { return lazyListHelper.getInternalList(ContactMechanism.class); }
From source file:com.oakhole.auth.entity.Menu.java
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "parent_id") @JsonIgnore public Menu getParent() { return parent; }
From source file:org.dspace.orm.entity.Bundle.java
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "primary_bitstream_id", nullable = true) public Bitstream getPrimary() { return primary; }
From source file:com.hmsinc.epicenter.model.geography.StateFeature.java
/** * @return the state//from w w w .j ava2s. c o m */ @XmlIDREF @XmlAttribute(required = true) @ManyToOne(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY) @JoinColumn(name = "ID_GEO_STATE", unique = false, nullable = true, insertable = true, updatable = true) @org.hibernate.annotations.ForeignKey(name = "FK_GEOGRAPHY_1") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region = "com.hmsinc.epicenter.model.GeographyCache") public State getState() { return state; }