Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

[13:11:54 CDT(-0500)] <EricDalquist> sure

[13:13:30 CDT(-0500)] <cwaymire> so I have an xml document that represents an Topic, including all of the Announcement children and am using JAXB to unmarshal that into a Topic object. Passing that to the appropriate service to persist it, everything gets persisted properly except that the key column that binds the Announcement to the Topic (PARENT_ID) remains null.

[13:13:42 CDT(-0500)] <EricDalquist> hrm

[13:13:52 CDT(-0500)] <cwaymire> I thought that being as it is the key column for the mapped set, it would take care of it

[13:13:55 CDT(-0500)] <EricDalquist> so as a rule I always have had a seperate XML vs DB data model

[13:14:14 CDT(-0500)] <EricDalquist> just because the data models never match up exactly