I want to know if Hibernate is easier?
Can you pl let me know the procedures to implement ojb with oracle.I am trying to implement it for Struts.
I do not know which to choose OJB or Hibernate.
I want to know both rather.
Originally posted by Paul Sturrock:
As far as I know OJB doesn't implement lazy loading, and I think OQL isn't as rich as HQL, nor does OJB support native SQL. Might be wrong, since I have only ever used it during an evalutaion and never on a proper project, so please correct me if I am. I would be interested to hear if anyone has use both Hibernate and OJB on proper projects.
OJB definitely implements lazy loading. Actually, the feature sets of Hibernate and OJB are very similiar. The major difference between the two is that Hibernate definitely has more market penetration. That alone would make me want to choose Hibernate over OJB.
One interesting tidbit, OJB will eventually implement the JDO specification while Gavin has said that Hibernate never will. Of course, persistence in EJB 3.0 is basically going to become Hibernate...