-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Hibernates extension of the JPA
PostPosted: Tue Feb 05, 2008 5:33 am 
Newbie

Joined: Tue Feb 05, 2008 5:07 am
Posts: 1
Hello All,

my company uses Hibernate as persistence-layer when suddenly our customer requested 100% JPA compliance.

My question is now: What features of Hibernate are not covered by the JPA?

In the Hibernate API I found a list of all Annotations that are extended by Hibernate, but I wasn't able to find something else.

I am especially interested in differences between JPQL and HQL and if there are other areas where Hibernate extends the functionality of JPA.

Every link or hint would be helpful.

Yours Sincerely.
Thilo


Top
 Profile  
 
 Post subject: JPA compliance
PostPosted: Tue Feb 05, 2008 6:31 am 
Newbie

Joined: Tue Feb 05, 2008 6:04 am
Posts: 3
Location: Norway
As long as you stick to the javax.persistence annotations, and avoid using the special Hibernate annotations like GenericGenerator and Type, you are JPA compliant as far as I can see.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 05, 2008 7:12 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
You should read the spec and especially the chapter about JPA-QL, this is where you might be bitten. The rest is trivial as toverlier said.

Note that you have the moral obligation to tell your customers they are making the wrong decision. Using specific features of your provider is perfectly OK as long as you understand it. It will be much cheaper to implement a workaround down the road if you switch to a different provider rather than applying a dogmatic strict compliance rule. For example it means you will not be able to use second level caches. This rule applies regardless of the provider you chose (Hibernate or one of it's competitors)

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.