Hello ,
I'm using HSQLDB(1.8.0.9) with hibernate & Annotations to create a desktop application.
After generating the db, and finishing my program, i discovered that i forgot to set a field in a table to be unique, so i did this in its corresponding Pojo :
Code:
@Column(nullable = false, unique = true)
private String name;
But when i ran my program, the changes were not applied automatically to the db.
This means that i have to edit the db script file manually.
Is there any other way to apply such a change using code ?
Thanks in advance.