Sunday, March 20, 2011

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 tried just using a declaration id type: 'int' but it got an error when calling Find on the class.

From stackoverflow
  • I believe you simply have to declare the id field as a member.

    class MyDomainClass {
        int id
    }
    

0 comments:

Post a Comment