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.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Castor vs. Hibernate, O/R woes

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Ranch Hand
Posts: 451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I’m tired of walking, and will rest for a minute and grow some wheels. This is the promise of this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!