sam liya wrote:
The above way might create a problem (it actually makes your database dependent)while shifting your DB.
Another way is to directly set a default value to param so when the objects get's created the value is in there.like this:
@Column(name="value")
private int value=1;