jporche
Jul 29th, 2009, 02:12 PM
Is possible to specify a field to be unique? Something like:
add field string -fieldName myField -unique ....
that would then create a database column with a uniqueness constraint? Otherwise I will have to go in and manually add this constraint to all the columns that need it in the db.
Also, it would be nice to be able to define multiple-column uniqueness constraints such as in MySql:
UNIQUE KEY 'userId_2' ('userId','customerId')
FYI, using Roo 1.0.0RC1 and Java 6.
Thanks!
add field string -fieldName myField -unique ....
that would then create a database column with a uniqueness constraint? Otherwise I will have to go in and manually add this constraint to all the columns that need it in the db.
Also, it would be nice to be able to define multiple-column uniqueness constraints such as in MySql:
UNIQUE KEY 'userId_2' ('userId','customerId')
FYI, using Roo 1.0.0RC1 and Java 6.
Thanks!