Originally posted by Kengkaj Sathianpantarit: But I don't think that Hibernate is an implementation of JPA, you don't mean that literally, right?
The JPA standard was based mostly off of Hibernate practices.
However, you can use Hibernate with or without adhering to JPA. So... yes, you could say that it has an implementation of JPA.
A good workman is known by his tools.
Hong Anderson
Ranch Hand
Joined: Jul 05, 2005
Posts: 1936
posted
0
I don't we can say A is an implementation of B, if A doesn't implement interfaces defined in B.
Otherwise, we can say C# is an implementation of Java language specifications or vice-versa.
Hong Anderson
Ranch Hand
Joined: Jul 05, 2005
Posts: 1936
posted
0
Originally posted by Kengkaj Sathianpantarit: I don't we can say A is an implementation of B, if A doesn't implement interfaces/specifications defined in B.
Otherwise, we can say C# is an implementation of Java language specifications or vice-versa.
In case of JPA, it's API, so anything that claims to be an implementation of JPA needs to implement JPA interfaces.
Originally posted by Kengkaj Sathianpantarit: In case of JPA, it's API, so anything that claims to be an implementation of JPA needs to implement JPA interfaces.
OK, for me Hibernate is not implementation of JPA, but as you said (or as hibernate.org said) Hibernate implements JPA through Hibernate EntityManager and Hibernate Annotations.
I wonder about their wording, they can just say Hibernate EntityManager implements JPA. Maybe they just want to say it that way to sound like Hibernate is an implementation of JPA.
Saying Hibernate implements JPA via XXX, it's like saying JDK implements logging using java.util.logging module. But we cannot say JDK is an implementation of Log, can we?
"Hibernate" is not equal Hibernate EntityManager and Hibernate Annotations. [ December 16, 2008: Message edited by: Kengkaj Sathianpantarit ]
James Angel
Greenhorn
Joined: Feb 04, 2004
Posts: 5
posted
0
In the sense of concrete class implementing API, yes, Hibernate implements JPA. You main argue the Hibernate is before JPA and how an implementation can be before API? Actually quite some Hibernate people were part of JPA's expert group. It is quite safe to say that JPA was from Hibernate.
Hong Anderson
Ranch Hand
Joined: Jul 05, 2005
Posts: 1936
posted
0
James Angel wrote:In the sense of concrete class implementing API, yes, Hibernate implements JPA. You main argue the Hibernate is before JPA and how an implementation can be before API?
No, my main argument is, Hibernate as a whole is not an implementation of JPA, but a part of Hibernate, Hibernate Entity Manager implements JPA.
It's like we say JDK is an implementation of Logging API which is wrong.
akshit kumar
Greenhorn
Joined: Jul 03, 2006
Posts: 13
posted
0
it is just a matter of prespective you can argue about it all day long
i prefer to use hibenate with .hbm fiels while other prefer with annotations and we both had our
points.
Looking for new ideas if you don't get one steal one . SCJP
deepak adlakha
Ranch Hand
Joined: Jul 27, 2001
Posts: 319
posted
0
I am not sure this will help or not. But there is beta version specific for JPA only.
I am not able to paste the URL here, but you can check oracle certification site.
Kengkaj Sathianpantarit wrote:I agreed with Jothi that taking SCBCD 5.0 is a good way to learn OR-mapping.
But I don't think that Hibernate is an implementation of JPA, you don't mean that literally, right?
I think I missed out the word "reference". So Hibernate is the reference implementation of JPA. By implementation I do not mean interface implementation but rather the JPA specifications. Is there a doubt that once you claim to know JPA, you do not know how to work with Hibernate?