in JPA, to use hibernate, the only thing need to do is moodify persitence.xml and add in hibernate configuration. May i know with JDO, can just by modifying jdoconfig.xml, able to integrate with hibernate? any reference or example on this?
A:
No, the reason it works on hibernate+JPA is the JPA specification was developed to be "compatible" with hibernate since hibernate is the dominant persistence API. The tech leads wished that people could move to JPA from hibernate easily.
Furthermore, the JPA specification is not as rigorous or detailed as JPA and thus it is a little more onerous to support JDO.
The JDO specification was developed independently of hibernate and thus cannot be switched onto JDO.
One obvious difference between hibernate/JPA and JDO is that JDO does not support annotations (it's a pre java 5 specification).
Michael Wiles
2009-08-17 10:28:33
JDO has supported annotations for 2 years, please check facts. JDO has had 2.1, 2.2 and pre-2.3 specs since then.
DataNucleus
2009-08-17 18:03:43
thanks - last I used JDO was version 2.0 and below - glad to know they've added annotations.
Michael Wiles
2009-08-18 07:28:52