1 package org.turro.crm.entity;
4 import java.util.HashSet;
6 import javax.persistence.*;
7 import org.turro.crm.db.CrmPU;
8 import org.turro.jpa.Dao;
9 import org.turro.jpa.entity.IDaoEntity;
19 @GeneratedValue(strategy=GenerationType.IDENTITY)
20 @Column(name=
"IDENTIFIER")
32 @Temporal(TemporalType.TIMESTAMP)
33 private java.util.Date prospectDate;
38 @OneToMany(mappedBy=
"vendorProspect", fetch = FetchType.LAZY, cascade=CascadeType.ALL, orphanRemoval=
true)
39 private Set<SaleAction> saleActions =
new HashSet<SaleAction>();
54 this.comission = comission;
70 this.prospectDate = prospectDate;
76 saleActions = dao.lazyLoader(
VendorProspect.class,
this,
"saleActions").saleActions;
82 this.saleActions = saleActions;
90 this.saleProspect = saleProspect;
110 return saleProspect ==
null || vendor ==
null ||
111 comission ==
null || alert ==
null;
119 saleActions = dao.lazyLoader(
VendorProspect.class,
this,
"saleActions").saleActions;
Set< SaleAction > getSaleActions()
void setProspectDate(Date prospectDate)
SaleProspect getSaleProspect()
void setSaleProspect(SaleProspect saleProspect)
void setVendor(Vendor vendor)
void setAlert(Formula alert)
Set< SaleAction > getUpdatedSaleActions()
void setComission(Formula comission)
void setSaleActions(Set< SaleAction > saleActions)
boolean isNotLoaded(Object o, String attribute)