Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3764

Validate entity name only if table name is not defined

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.0.0.M2
    • Fix Version/s: 2.0.0.M3
    • Component/s: None
    • Labels:
      None

      Description

      If you try to execute the following command:

      roo> entity jpa --class ~.model.Order
      Reserved SQL keyword 'Order' is not permitted as simple type name
      

      The error showed above is correct, because prevents the possible errors with Database reserved words.

      But, if developer specifies a table name to use for that entity, this feature doesn't make sense.

      roo> entity jpa --class ~.model.Order --table CUSTOMER_ORDER
      Reserved SQL keyword 'Order' is not permitted as simple type name
      

      Review this problem and apply some solution like:

      • If table name is specified, and is not a database reserved word, doesn't check entity name.

        Attachments

          Activity

            People

            Assignee:
            jcgarcia Juan Carlos García del Canto
            Reporter:
            jcgarcia Juan Carlos García del Canto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: