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:com.dp2345.entity.Cart.java

/**
 * ?
 * 
 * @return 
 */
@OneToOne(fetch = FetchType.LAZY)
public Member getMember() {
    return member;
}

From source file:com.banyou.backend.entity.User.java

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "merchant_id")
public Merchant getMerchant() {
    return merchant;
}

From source file:com.contact.Contact.java

@Basic(fetch = FetchType.LAZY)
@Lob
@Column(name = "PHOTO")
public byte[] getPhoto() {
    return photo;
}

From source file:com.marand.thinkmed.medications.model.impl.AtcClassificationImpl.java

@OneToMany(targetEntity = AtcClassificationImpl.class, mappedBy = "parent", fetch = FetchType.LAZY)
public Set<AtcClassification> getChildren() {
    return children;
}

From source file:com.doculibre.constellio.entities.ConnectorManager.java

/**
 * Lists the connector types provided by this connector manager.
 * //w w w.j av a  2  s.c om
 * @return
 */
//FIXME Validate cascade...
@OneToMany(mappedBy = "connectorManager", cascade = {
        CascadeType.ALL }, fetch = FetchType.LAZY, orphanRemoval = true)
public Set<ConnectorType> getConnectorTypes() {
    return connectorTypes;
}

From source file:com.lcw.one.common.persistence.DataEntity.java

@JsonIgnore
@ManyToOne(fetch = FetchType.LAZY)
@NotFound(action = NotFoundAction.IGNORE)
public User getUpdateBy() {
    return updateBy;
}

From source file:com.infinities.keystone4j.model.catalog.Service.java

@JsonView(Views.Basic.class)
@OneToMany(fetch = FetchType.LAZY, mappedBy = "service", cascade = CascadeType.ALL)
public Set<Endpoint> getEndpoints() {
    return endpoints;
}

From source file:com.lingxiang2014.entity.ArticleCategory.java

@OneToMany(mappedBy = "parent", fetch = FetchType.LAZY)
@OrderBy("order asc")
public Set<ArticleCategory> getChildren() {
    return children;
}

From source file:com.sccl.attech.modules.message.entity.AlarmRecords.java

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "user_id")
@NotFound(action = NotFoundAction.IGNORE)
@JsonIgnore
@NotNull
public User getUser() {
    return user;
}

From source file:com.pansky.integration.common.persistence.DataEntity.java

@JsonIgnore
@ManyToOne(fetch = FetchType.LAZY)
@NotFound(action = NotFoundAction.IGNORE)
@JoinColumn(name = "create_by")
public User getCreateBy() {
    return createBy;
}