0 Replies Latest reply on Jan 14, 2009 4:26 PM by Chris Simons

    Question about @Embedded

    Chris Simons Expert

      If an entity (Person) embeds an object (Address), and none of the Person.Address attributes are supplied when Person is persisted, will Person.getAddress() return a null value?

      When creating a new Person, it makes sense to create a new Address and set Person.setAddress(address).

      When editing a Person, should I have to check to see if Person.getAddress() is null in the case that no attributes of Address were supplied when Person was created?