* Title of category
*/
@Basic (optional = false)
- @Column (name = "title", length = 100, nullable = false, unique = true)
- private String title;
+ @Column (name = "category_title", length = 100, nullable = false, unique = true)
+ private String categoryTitle;
/**
* Constructor which accepts all database fields
*
* @param categoryId Id number of database record
- * @param title Category title
+ * @param categoryTitle Category categoryTitle
* @param parentCategory Parent category
*/
- public ProductCategory (final Long categoryId, final String title, final Category parentCategory) {
+ public ProductCategory (final Long categoryId, final String categoryTitle, final Category parentCategory) {
// Set all here
this.categoryId = categoryId;
- this.title = title;
+ this.categoryTitle = categoryTitle;
this.parentCategory = parentCategory;
}
public void copyAll (final Category category) {
// Copy all data
this.setParentCategory(category.getParentCategory());
- this.setTitle(category.getTitle());
+ this.setCategoryTitle(category.getCategoryTitle());
}
@Override
}
@Override
- public String getTitle () {
- return this.title;
+ public String getCategoryTitle () {
+ return this.categoryTitle;
}
@Override
- public void setTitle (final String title) {
- this.title = title;
+ public void setCategoryTitle (final String categoryTitle) {
+ this.categoryTitle = categoryTitle;
}
}