Share

Grails Application Generator

Subscribe

Bug - db column names containing underscore

  1. 2009-09-22 17:11:47 UTC

    Using GRAG 1.1 for the first time, pretty cool product. However, I noticed that the created domain class removes underscores from my column names, and converts them to camel case, ie: column name "jobno" becomes "jobNo" in the domain.groovy file. In the GRAG gui, when I click on a column in my Entity, it shows the Name : "jobNo", and Column name: jobno. However, the constraint in the created domain class shows jobNo(max: 2147483647). Is this a known bug?

    Thanks

  2. 2009-09-22 17:13:06 UTC

    Interesting, underscores were also removed from my post above. Must be some conspiracy.

  3. 2009-09-22 17:16:21 UTC

    [Reposting to escape underscores] Using GRAG 1.1 for the first time, pretty cool product. However, I noticed that the created domain class removes underscores from my column names, and converts them to camel case, ie: column name "job_no" becomes "jobNo" in the domain.groovy file. In the GRAG gui, when I click on a column in my Entity, it shows the Name : "jobNo", and Column name: job_no. However, the constraint in the created domain class shows jobNo(max: 2147483647). Is this a known bug?

    Thanks

  4. 2009-09-23 06:19:30 UTC

    Hi,

    This is not a known bug. I'll have a look at it. Might it be possible for you to upload the xml file of your project to the bugtracker?

    Rudie

  5. 2009-09-23 14:10:48 UTC

    Actually I just learned that the camel case of the constraints in the domain file is not a problem. Most fields with underscores resolve correctly. However, if I have a db field name such as "custom_1", The application errors out stating that it can't resolve database field "custom1". I'm still researching and trying to reproduce.

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.