开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜