Example usage for javax.persistence FetchType LAZY

List of usage examples for javax.persistence FetchType LAZY

Introduction

In this page you can find the example usage for javax.persistence FetchType LAZY.

Prototype

FetchType LAZY

To view the source code for javax.persistence FetchType LAZY.

Click Source Link

Document

Defines that data can be lazily fetched.

Usage

From source file:gov.nih.nci.cabig.caaers.domain.StudyIntervention.java

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "study_id", nullable = false)
@Cascade(value = { CascadeType.EVICT })
public Study getStudy() {
    return study;
}

From source file:example.Right.java

@OneToOne(cascade = { CascadeType.PERSIST,
        CascadeType.MERGE }, targetEntity = Left.class, fetch = FetchType.LAZY)
public Left getOne2one() {
    return one2one;
}

From source file:org.dspace.orm.entity.CheckSumHistory.java

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "bitstream_id", nullable = true)
public Bitstream getBitstream() {
    return bitstream;
}

From source file:example.Left.java

@OneToOne(optional = false, cascade = { CascadeType.PERSIST,
        CascadeType.MERGE }, targetEntity = Right.class, mappedBy = "one2one", fetch = FetchType.LAZY)
public Right getOne2one() {
    return one2one;
}

From source file:com.webbfontaine.valuewebb.model.TtLog.java

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "TT_ID", updatable = false)
@NotNull
public TtGen getTtGen() {
    return ttGen;
}

From source file:com.melayer.camzia.domain.MeRole.java

@JsonIgnore
@ManyToMany(fetch = FetchType.LAZY, mappedBy = "roles")
public Set<MeUser> getUsers() {
    return users;
}

From source file:net.groupbuy.entity.Parameter.java

/**
 * ??
 * 
 * @return ?
 */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(nullable = false)
public ParameterGroup getParameterGroup() {
    return parameterGroup;
}

From source file:example.Right.java

@ManyToOne(cascade = { CascadeType.PERSIST,
        CascadeType.MERGE }, targetEntity = Left.class, fetch = FetchType.LAZY)
public Left getMany2one() {
    return many2one;
}

From source file:org.dspace.orm.entity.MetadataFieldRegistry.java

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "metadata_schema_id", nullable = true)
public MetadataSchemaRegistry getMetadataSchema() {
    return metadataSchema;
}

From source file:org.dspace.orm.entity.VersionItem.java

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "item_id", nullable = true)
public Item getItem() {
    return item;
}