Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1926 Adding more commands to Forge and improve existing ones
  3. FORGE-2101

jpa-new-field command should have a --not-nullable attribute

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • 2.12.2.Final
    • 2.12.1.Final
    • Java EE
    • None

      It would be good to be able to set the nullable attribute of a field on an entity. If you do :

      jpa-new-field --named title --nullable true;
      

      You will get :

      @Column(nullable = true)
      private String title;
      

      That's important for DDL generation

            agoncal Antonio Goncalves (Inactive)
            agoncal Antonio Goncalves (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: