content: package com.ahasan.item.entity;
  
  import javax.persistence.Column;
  import javax.persistence.Entity;
  import javax.persistence.GeneratedValue;
  import javax.persistence.GenerationType;
  import javax.persistence.Id;
  import javax.persistence.Table;
  import javax.validation.constraints.Size;
  
  @Entity
  @Table(name = "item")
  public class ItemEntity {
  
  	@Id
  	@GeneratedValue(strategy = GenerationType.IDENTITY)
  	@Column(name = "item_id")
  	private Long itemId;
  
  	@Size(max = 10, min = 1, message = "item name field must be equal or less than {max}")
  	@Column(name = "item_name")
  	private String itemName;
  
  	@Size(max = 5, min = 1, message = "item size field must be equal or less than {max}")
  	@Column(name = "item_size")
  	private String itemSize;
  
  	public Long getItemId() {
  		return itemId;
  	}
  
  	public void setItemId(Long itemId) {
  		this.itemId = itemId;
  	}
  
  	public String getItemName() {
  		return itemName;
  	}
  
  	public void setItemName(String itemName) {
  		this.itemName = itemName;
  	}
  
  	public String getItemSize() {
  		return itemSize;
  	}
  
  	public void setItemSize(String itemSize) {
  		this.itemSize = itemSize;
  	}
  
  }
  