How to give a custom name of a table?
@Table(name="myTableName")
How to give a custom name of a column?
@Column(name="myColumnName")
How to prevent an attribute in a class from being saved into database table?
@Transient
How to make an attribute required field in a table?
@Column(name="myColumnName")
How to save a default value?
@Basic
How to save like a Date?
@Temporal(TemporalType.DATE)
How to save like a Timestamp?
@Temporal(TemporalType.TIMESTAMP)