Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

[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

  • No labels