Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-404

Cannot scaffold for entities with DATE fields

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Beta4
    • 1.0.0.Beta3
    • Scaffold
    • None

      new-project --named example --topLevelPackage com.e
      ls
      cat pom.xml
      scaffold setup
      cat pom.xml
      ls
      persistence setup --provider HIBERNATE --container JBOSS_AS7
      ls
      entity --named Customer
      field string --named FirstName
      field string --named lastName
      field temporal --type DATE --named birthdate
      entity --named Profile
      cd ../Customer.jav
      field string --named bio
      cd ../Customer.java
      field oneToOne --named profile --fieldType com.e.domain.Profile.java --inverseFieldName customer 
      cd ../Profile.java
      ls
      ls customer::Customer
      set VERBOSE true
      scaffold from-entity com.e.domain.*

      Boom. Once you've removed the DATE field from Customer, scaffolding works fine.

              kennardconsulting Richard Kennard (Inactive)
              lincolnthree Lincoln Baxter III (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: