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

Add in the ability to set the name attribute on the javax.persistence.Entity

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.1.1.RELEASE
    • Fix Version/s: 1.1.3.RELEASE
    • Component/s: PERSISTENCE
    • Labels:
      None

      Description

      Add to the entity command and also the org.springframework.roo.addon.entity.RooEntity annotation that can be used to set the name attribute of the javax.persistence.Entity annotation in the _Roo_Entity.aj file.

      Example:

      @RooEntity(entityName = "FullTime.Employment")

      Would produce the following

      declare @type: Employment: @Entity(name = "FullTime.Employment");

      and also have correctly use the name when creating the finder methods.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stewarta Alan Stewart
              Reporter:
              draw David Wilkinson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: