Example usage for org.hibernate.annotations LazyCollectionOption FALSE

List of usage examples for org.hibernate.annotations LazyCollectionOption FALSE

Introduction

In this page you can find the example usage for org.hibernate.annotations LazyCollectionOption FALSE.

Prototype

LazyCollectionOption FALSE

To view the source code for org.hibernate.annotations LazyCollectionOption FALSE.

Click Source Link

Document

Eagerly load it.

Usage

From source file:br.unisal.model.Cliente.java

@OneToMany(mappedBy = "cliente", cascade = CascadeType.ALL)
@LazyCollection(LazyCollectionOption.FALSE)
@JsonIgnore
public List<Pedido> getPedidos() {
    return pedidos;
}

From source file:br.unisal.model.ItemPedido.java

@OneToMany(mappedBy = "itemPedido", cascade = CascadeType.ALL)
@LazyCollection(LazyCollectionOption.FALSE)
public List<EstruturaPedido> getEstruturas() {
    return estruturas;
}

From source file:br.unisal.model.MateriaPrima.java

@OneToMany(mappedBy = "materiaPrima", cascade = CascadeType.ALL)
@LazyCollection(LazyCollectionOption.FALSE)
@JsonIgnore/* ww  w.  j  a  va 2 s.c o  m*/
public List<Estrutura> getEstruturas() {
    return estruturas;
}

From source file:br.unisal.model.MateriaPrima.java

@OneToMany(mappedBy = "materiaPrima", cascade = CascadeType.ALL)
@LazyCollection(LazyCollectionOption.FALSE)
@JsonIgnore/* w ww  . java2  s  .c  o m*/
public List<EstruturaPedido> getEstruturasPedido() {
    return estruturasPedido;
}

From source file:br.unisal.model.Pedido.java

@OneToMany(mappedBy = "pedido", cascade = CascadeType.ALL)
@LazyCollection(LazyCollectionOption.FALSE)
public List<ItemPedido> getItensPedido() {
    return itensPedido;
}

From source file:br.unisal.model.Produto.java

@OneToMany(mappedBy = "produto", cascade = CascadeType.ALL)
@LazyCollection(LazyCollectionOption.FALSE)
public List<Estrutura> getEstruturas() {
    return estruturas;
}

From source file:com.bgh.myopeninvoice.db.model.CompaniesEntity.java

License:Apache License

@LazyCollection(LazyCollectionOption.FALSE)
@OneToMany(mappedBy = "companiesByCompanyId")
public Collection<CompanyContactEntity> getCompanyContactsByCompanyId() {
    return companyContactsByCompanyId;
}

From source file:com.bgh.myopeninvoice.db.model.CompaniesEntity.java

License:Apache License

@LazyCollection(LazyCollectionOption.FALSE)
@OneToMany(mappedBy = "companiesByContractSignedWith")
public Collection<ContractsEntity> getContractsByCompanyId() {
    return contractsByCompanyId;
}

From source file:com.bgh.myopeninvoice.db.model.CompaniesEntity.java

License:Apache License

@LazyCollection(LazyCollectionOption.FALSE)
@OneToMany(mappedBy = "companiesByContractSignedWithSubcontract")
public Collection<ContractsEntity> getContractsByCompanyId_0() {
    return contractsByCompanyId_0;
}

From source file:com.bgh.myopeninvoice.db.model.CompanyContactEntity.java

License:Apache License

@LazyCollection(LazyCollectionOption.FALSE)
@ManyToOne(cascade = CascadeType.MERGE)/*from   ww w.j a v a  2  s .c o  m*/
@JoinColumn(name = "CONTACT_ID", referencedColumnName = "CONTACT_ID", nullable = false)
public ContactsEntity getContactsByContactId() {
    return contactsByContactId;
}