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

Integration test is failing for @EmbeddedId field

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.1.0.RELEASE
    • Fix Version/s: 1.2.0.RC1
    • Component/s: TESTING
    • Labels:
      None
    • Environment:
      JDK 1.6, winxp, Mysql 5.1, Hibernate

      Description

      1. Create a table with composite primary key, having two fields with none of the field is having any auto generated value.
      2. Reverse engineer with "database reverse engineer"
      3. Create integration test by "Test Integration" (Ideally there should be option in database reverse engineer to create test also ).
      4. test by running as Junit.

      Second test case failing with org.springframework.orm.jpa.JpaSystemException: org.hibernate.id.IdentifierGenerationException: null id generated for:class .....

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stewarta Alan Stewart
              Reporter:
              ashishpatel Ashish Patel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0.5h
                  0.5h
                  Remaining:
                  Remaining Estimate - 0.5h
                  0.5h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified