18 package org.turro.financials.entity;
20 import javax.persistence.*;
21 import org.turro.string.Strings;
31 @GeneratedValue(strategy=GenerationType.IDENTITY)
32 @Column(name=
"IDENTIFIER")
41 private String contractorCode;
43 private String description;
54 this.contract = contract;
58 return contractorCode;
62 this.contractorCode = contractorCode;
70 this.description = description;
94 this.product = product;
108 return contract ==
null || product ==
null || Strings.isBlank(contractorCode);
String getContractorCode()
void setContract(Contract contract)
void setProduct(Product product)
void setContractorCode(String contractorCode)
void setDescription(String description)
void setPrice(double price)