[13:11:13 CDT(-0500)] <cwaymire> EricDalquist: you around? got a hibernate question you may be able to assist with.
[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
[13:14:32 CDT(-0500)] <EricDalquist> how are you describing the Topic object to hibernate?
[13:14:33 CDT(-0500)] <cwaymire> I was trying to use some simply jaxb annotations to be able to export/import easily
[13:14:39 CDT(-0500)] <EricDalquist> yeah
[13:14:42 CDT(-0500)] <EricDalquist> jen tried that too
[13:14:48 CDT(-0500)] <cwaymire> it currently using a hibernate mapping xml document
[13:14:49 CDT(-0500)] <EricDalquist> it never quite worked well
[13:15:06 CDT(-0500)] <EricDalquist> we're actually just finishing a jpa2 retrofit on a portlet
[13:15:11 CDT(-0500)] <cwaymire> i could have it export the ID values but thats not something i'd like to do
[13:15:19 CDT(-0500)] <cwaymire> bad practice
[13:15:21 CDT(-0500)] <EricDalquist> and will be publishing documentation and some utility libraries in about a week
[13:15:21 CDT(-0500)] <EricDalquist> right
[13:15:36 CDT(-0500)] <EricDalquist> which is why uportal and lots of other things have seperate data models
[13:15:46 CDT(-0500)] <EricDalquist> the export data model is close but not exactly the same as the DB data model
[13:16:02 CDT(-0500)] <EricDalquist> and you go insane trying to get all the little id/reference cases working
[13:16:13 CDT(-0500)] <cwaymire> ok. i'm going to poke at it a little bit more before moving on
[13:16:18 CDT(-0500)] <EricDalquist>
[13:16:34 CDT(-0500)] <EricDalquist> I'll be sure to send some emails when we get our jpa docs posted
[13:16:43 CDT(-0500)] <cwaymire> cool. thanks.