Added by on 2013-07-05

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)

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*