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.
|
|