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

DataOnDemand generation fails for entity with @Embedded reference

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.1.1.RELEASE
    • Fix Version/s: None
    • Component/s: TESTING
    • Labels:
      None

      Description

      The integration test DataOnDemand generation will not populate the fields of a reference annotated with @Embedded.

      Example:

      @Embeddable
      @RooJavaBean
      public class Address {
      @Column(nullable=false)
      private String streetAddress;
      }

      @RooJavaBean
      @RooToString
      @RooEntity
      public class Person {
      @Embedded
      protected AddressBase address;
      }

      Integration tests for Person fails because its DataOnDemandGeneration will try to persist Person with streetAddress=null.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jcgarcia Juan Carlos GarcĂ­a del Canto
              Reporter:
              jn73 Jan Eriksson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: