import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
+import javax.persistence.NamedQueries;
+import javax.persistence.NamedQuery;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
*/
@Entity (name = "company_basic_data")
@Table (name = "company_basic_data")
+@NamedQueries (
+ {
+ @NamedQuery (name = "AllBusinessData", query = "SELECT b FROM company_basic_data AS b ORDER BY b.businessDataId")
+ }
+)
@SuppressWarnings ("PersistenceUnitPresent")
public class CompanyBasicData implements BusinessBasicData {
/**
* Legal status of company (example: "Inc.", "GmbH")
*/
- @Basic (optional = false)
- @Column (name = "company_legal_status", nullable = false)
+ @Column (name = "company_legal_status")
private String companyLegalStatus;
/**
/**
* Reference to headquarters data
*/
- @JoinColumn (name = "company_headquarters_data_id", nullable = false, updatable = false)
- @OneToOne (targetEntity = CompanyHeadQuartersData.class, cascade = CascadeType.ALL, optional = false)
+ @JoinColumn (name = "company_headquarters_data_id")
+ @OneToOne (targetEntity = CompanyHeadQuartersData.class, cascade = CascadeType.ALL)
private HeadQuartersData headQuartersData;
@Override