-->
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: Legacy data mapping - use adapters?
PostPosted: Thu Nov 25, 2004 7:06 am 
Newbie

Joined: Wed Aug 11, 2004 3:48 am
Posts: 4
Location: UK
Hi,

If I have a legacy table which needs to be accessed via an interface. Is it best to use an adapter or make the Hibernate mapped class implement the interface? Implementing the interface will require manipulating data.

I've used adapters and wrapped the Hibernate mapped classes up when they're loaded via the DAO but I'm having problems with the collections (which also need an adapter).

I can see pros and cons for both approaches. Anyone have suggestions?

Thanks.


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.