Results 1 to 4 of 4

Thread: DBRE table columns with invalid characters

  1. #1
    Join Date
    Nov 2009
    Location
    Montreal, Quebec
    Posts
    398

    Question DBRE table columns with invalid characters

    I did a database reverse engineering which worked just fine. The problem I'm having is some columns have characters that are invalid for field names in a class so won't compile because of a syntax error. One such column has the # symbol in the column name, so the generated field name wouldn't compile. Not sure how to address this other than possibly using push-in refactor for the fields that have invalid characters and changing the field name, but keeping the original name in the @Column annotation. I'm wondering if there's a more elegant solution though. Something Roo could handle on it's own.

  2. #2
    Join Date
    Dec 2005
    Posts
    929

    Default

    I'm not handling '#' as a special case. Raise a Jira request and I will look at it. Please attach a DDL
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  3. #3
    Join Date
    Nov 2009
    Location
    Montreal, Quebec
    Posts
    398

    Default

    I'm having trouble generating the DDL. Can I attach the DBRE output file instead?

  4. #4
    Join Date
    Dec 2005
    Posts
    929

    Default

    OK. Please raise the Jira request as well
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •