This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes NamedNativeQuery in JPA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "NamedNativeQuery in JPA" Watch "NamedNativeQuery in JPA" New topic
Author

NamedNativeQuery in JPA

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9467
    
    2

How to create a NamedNativeQuery using JPA? I have a file called querries.xml and I want to write a plain SQL query and use it elsewhere. But when I try to start up my application, it throws error saying that the EntityManagerFactory cannot be built and it points me that org.hibernate.hql.ast.QuerySyntaxException: has occured. Any ideas?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9467
    
    2

Any help guys? Does something like that even exists?
 
Don't get me started about those stupid light bulbs.
 
subject: NamedNativeQuery in JPA