-->
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: 3rd party db-system - entity versioning?
PostPosted: Tue Nov 30, 2010 4:08 am 
Newbie

Joined: Tue Oct 19, 2010 9:18 am
Posts: 7
Hello there!

i have to connect a 3rd party db-system (Microsoft Navision) for read-only.
There are several different object (table)-versions, so i need to handle different versions of the tables.

i thougth about some solutions, here is what i got:

1: No entities, just business-Objects and a version-depending Facade to execute native SQL.
pro: most compatible
contra: own mapping -> huge effort

2: business- & entity-pack for each version (also different persistence units)
pro: reliable business-logics
contra: do all x times seperately (business & enitities for each version), interfaces for all beans

3: unified version of entities with all non-common attributes as "transient", reload these attributes according to table-version afterwards (native SQL)
pro: compatible entity with all db-versions
contra: hibernate cannot search with transient attributes, performance-issue on collections

you have any suggestions how to realize a versioning to support different 3rd-party db-versions (or better table-versions)?


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.