A new topic, 'Inserting object data', has been made on a board you are watching.
You can see it at
http://liquibase.org/forum/index.php?topic=692.new#new
The text of the topic is shown below:
Hi all,
I'm considering how to best use my data model to insert an object graph into an
empty database. A couple of issues that I want to cover:
My data model has heavy inheritance with a combination of joined and mapped
subclasses. Because Hibernate is the final arbiter of storage in this case,
I'd like to be able to throw objects at Hibernate and let it work out diffusing
of the data into the respective tables. In this manner, if I change the
inheritance layout, the same objects will automatically save in the
then-current layout.
Because this agile layout will have different tables, it will likely generate
different keys, breaking hardcoded loads.
In the past, I've used XStream to serialize XML, then iterate over the list
that it gave me, saving those objects with Hibernate using cascade for
associations. I could imagine LB having a loadObject element that accepted XML
serialized by XStream and embedded as CDATA as a part of the changelog. But I
took a look at this and gave up after a few hours of banging on it, getting
Hibernate working under LB didn't seem very clean at all.
Any thoughts appreciated!!
Unsubscribe to new topics from this board by clicking here:
http://liquibase.org/forum/index.php?action=notifyboard;board=1.0
Regards,
The Liquibase Community Forum Team.
------------------------------------------------------------------------------
Automate Storage Tiering Simply
Optimize IT performance and efficiency through flexible, powerful,
automated storage tiering capabilities. View this brief to learn how
you can reduce costs and improve performance.
http://p.sf.net/sfu/dell-sfdev2dev
_______________________________________________
Liquibase-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/liquibase-user