Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1491 Perform a review of Forge 2.x
  3. FORGE-1450

Cannot create an enum attribute on an Entity

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Critical Critical
    • 2.5.0.Final
    • 2.0.0.CR2
    • UI - Shell
    • None

      I've created a Language enum (with java-new-enum) and then I want my entity Book to have an attribute of type Language. In Forge 1.x I would do :

      field custom --named language --type org.javaone.javaee7.model.Language.java ;
      

      There is no such custom attribute in Forge 2.x and the following doesn't work :

      jpa-new-field --named language --typeName org.javaone.javaee7.model.Language.java ;
      

              robert@balent.cz Robert Balent (Inactive)
              agoncal Antonio Goncalves (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: