This week's book giveaway is in the Reactive Progamming forum. We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line! See this thread for details.
I've developed quite a few J2EE apps over the past few years, and i've in the past chosen Castor as my O/R mapper of choice. Back when I started looking at persistence layers, JDO wasn't around, and Hibernate wasn't as mature and widely accepted as it is now. I've gone ahead and made the decision that I'd like to migrate over to Hibernate, but at the same time, not completely abandon Castor. I'm currently trying to create a layer of abstraction above the persistence layer so that I can swap them in and out at will. Luckily, I had a pseudo-abstraction layer in place already. I've got the writing of objects into a relational database via both Hibernate and Castor (hot pluggable) working flawlessly. The big problem i'm having now is with querying objects out of the database... Are there any querying frameworks out there that perhaps have plugins for both Hibernate and Castor? I'd hate to go through the process of building my own from scatch... Any help is greatly appreciated!
Brian, I'm not sure this will really help you but I suggest you check out the Spring Framework. While it doesn't have an abstraction layer for Castor it does have support that makes using Hibernate, JDO, and even JDBC easier. It also has lots of other goodies for making J2EE and other Java development easier. If you go its Sourceforge project and post your request on the user list you may be able to get some good information to help you solve your problem there. Good luck. kktec SCJP 1.4 & SCWCD
kktec<br />SCJP, SCWCD, SCJD<br />"What we observe is not nature itself, but nature exposed to our method of questioning." - Werner Heisenberg
I’m tired of walking, and will rest for a minute and grow some wheels. This is the promise of this tiny ad: