Migrating Rails app to Grails - Can I easily use an int for the ID field of all the domain classes?
If so how do I do it? I t开发者_JAVA技巧ried just using a declaration id type: 'int' but it got an error when calling Find on the class.
I believe you simply have to declare the id field as a member.
class MyDomainClass {
int id
}
精彩评论