File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes queryHints for JPA 2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "queryHints for JPA 2.0" Watch "queryHints for JPA 2.0" New topic

queryHints for JPA 2.0

nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
In Hibernate, I can use this to comment a query

hints = @javax.persistence.QueryHint(name = "org.hibernate.comment", value = "..."))

you see, org.hibernate.comment is vendor-dependent.

Is there a equal name in JPA 2.0 which makes my Comment vendor-independent?

Where can I find the queryHints for JPA 2.0 ?
I agree. Here's the link:
subject: queryHints for JPA 2.0
It's not a secret anymore!