dist.javadoc.dir=${dist.dir}/javadoc
endorsed.classpath=
excludes=
-file.reference.jcontacts-core.jar=lib/jcontacts-core.jar
-file.reference.jcoreee.jar=lib/jcoreee.jar
-file.reference.jcustomer-core.jar=lib/jcustomer-core.jar
+file.reference.jcontacts-business-core.jar=lib/jcontacts-business-core.jar
includes=**
jar.archive.disabled=${jnlp.enabled}
jar.compress=false
jar.index=${jnlp.enabled}
javac.classpath=\
- ${file.reference.jcoreee.jar}:\
- ${file.reference.jcontacts-core.jar}:\
- ${file.reference.jcustomer-core.jar}:\
+ ${file.reference.jcontacts-business-core.jar}:\
${libs.javaee-api-7.0.classpath}
# Space-separated list of extra javac options
javac.compilerargs=-Xlint:unchecked -Xlint:deprecation
${javac.test.classpath}:\
${build.test.classes.dir}
source.encoding=UTF-8
-source.reference.jcontacts-core.jar=../jcontacts-core/src/
-source.reference.jcoreee.jar=../jcoreee/src/
-source.reference.jcustomer-core.jar=../jcustomer-core/src/
+source.reference.jcontacts-business-core.jar=../jcontacts-business-core/src/
src.dir=src
test.src.dir=test
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
+import org.mxchange.jcontactsbusiness.model.basicdata.BasicData;
+import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
import org.mxchange.jproduct.model.category.Category;
import org.mxchange.jproduct.model.category.ProductCategory;
@Column (name = "product_id", nullable = false, updatable = false)
private Long productId;
+ /**
+ * The company that has manufactured/produced this product
+ */
+ @JoinColumn(name = "product_manufacturer_id", referencedColumnName = "company_data_id")
+ @OneToOne(targetEntity = BusinessBasicData.class, cascade = CascadeType.REFRESH)
+ private BasicData productManfacturer;
+
/**
* Net price of product
*/
/**
* Tax rate (0-1, by 1=100%)
*/
- @Column (name = "product_gross_price")
+ @Column (name = "product_tax_rate")
private Float productTaxRate;
/**
this.productId = productId;
}
+ @Override
+ public BasicData getProductManfacturer () {
+ return this.productManfacturer;
+ }
+
+ @Override
+ public void setProductManfacturer (final BasicData productManfacturer) {
+ this.productManfacturer = productManfacturer;
+ }
+
@Override
public Float getProductNetPrice () {
return this.productNetPrice;
import java.io.Serializable;
import java.util.Date;
+import org.mxchange.jcontactsbusiness.model.basicdata.BasicData;
import org.mxchange.jproduct.model.category.Category;
/**
*/
void setProductId (final Long productId);
+ /**
+ * Getter for manufacturing/producing company
+ * <p>
+ * @return Manufacturing/producing company
+ */
+ BasicData getProductManfacturer ();
+
+ /**
+ * Setter for manufacturing/producing company
+ * <p>
+ * @param productManfacturer Manufacturing/producing company
+ */
+ void setProductManfacturer (final BasicData productManfacturer);
+
/**
* Getter for product's net price
* <p>