开发者

Migrating Rails app to Grails - Can I easily use an int for the ID field of all the domain classes?

开发者 https://www.devze.com 2022-12-14 00:10 出处:网络
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.

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
}
0

精彩评论

暂无评论...
验证码 换一张
取 消