-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Strategies for persisting xml across multiple db types
PostPosted: Tue Jan 22, 2013 5:54 am 
Newbie

Joined: Mon Jul 19, 2010 7:21 am
Posts: 5
My product can support multiple different databases (oracle, sybase, postgres), users simply make a few changes to a config file and we sort out the hibernate dialects etc on startup. Our schema as a result is relatively simple and tries to avoid using db specific features that would add alot more complexity to our app.

One scenario we face due to some legacy code is a java object is marshalled to xml using JAXB and stored in a CLOB or TEXT column depending on the db type. Our column type in the hbm.xml is a custom class that actually extends ClobType and adds in some marshalling logic.

We started to investigate upgrading from hibernate 3.5.6, first to 3.6 and eventually 4.1 but this area of our application is holding us back as there were enough changes to the ClobType classes in v3.6 that our current strategy no longer works.

What would be the communities recommendation for approaching this problem. Many of the xml serialization questions I have seen in the past focus on one db type and the correct jdbc methods for persisting them. Im looking for the best way that will work out of the box across multiple db types.

Thanks,
John


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.