I am looking for an easy way to map objects in a huge database based on a jee applications. This JEE Application will supports Java1.5 and EJB3
My candidates are: - pureQuery(tm) - JDBC native - Hibernate - Spring
On my first web inquiries I saw that the newer hibernate versions are using simple annotiations, where a developer doesnt need to write XML files. Thats a pretty good thing. But which "Framework" is recommended?
PS: It is important to map several tables in one object! [ February 19, 2008: Message edited by: antonio bartulovic ]
Mapping one Java class across multiple tables is a lead pipe cinch. No problem at all. For multiple databases, you can use Hibernate Shards.
All the key frameworks work pretty good. Hibernate with JPA annotations is extremely easy, can work with an EntityManager, and has a very large basis of support.
I'm just finishing up a book on Hibernate and JPA annotations. If you chose that direction, and you'd like a draft copy and be an editor, I'd more than welcome the help.
-Cameron McKenzie
antonio bartulovic
Greenhorn
Joined: Feb 19, 2008
Posts: 3
posted
0
why not just send it to me!
because i'm writing actually a genreal overview of just 3 technonolgys:
I'm also able to translate it into german [ February 27, 2008: Message edited by: antonio bartulovic ]
James Sutherland
Ranch Hand
Joined: Oct 01, 2007
Posts: 550
posted
0
Personally I would also recommend using JPA, as it has the most persistence products supporting it. Since JPA is just a spec, you will also need to decide on which JPA product to use, but the advantage of using the spec is that you can easily switch what product you use at any point.
Of course, you need to decide if you really want to use a mapping tool. You may find these blog postings on "DAO versus ORM" and "Choosing a Java persistence strategy" interesting: