/**
* Generic product class
- *
+ * <p>
* @author Roland Haeder<roland@mxchange.org>
* TODO: Find a better name
*/
/**
* Product productCategory
*/
- @JoinColumn(name = "category_id", nullable = false, updatable = false)
- @OneToOne(targetEntity = ProductCategory.class, optional = false)
+ @JoinColumn (name = "category_id", nullable = false, updatable = false)
+ @OneToOne (targetEntity = ProductCategory.class, optional = false)
private Category productCategory;
/**
*/
@Id
@GeneratedValue (strategy = GenerationType.IDENTITY)
- @Column(name = "product_id", length = 20, nullable = false, updatable = false)
+ @Column (name = "product_id", length = 20, nullable = false, updatable = false)
private Long productId;
/**
/**
* Constructor will all required data
- *
+ * <p>
* @param productId Id number of product
* @param productTitle Name of product
* @param productPrice Price