aspose file tools*
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
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: 9383
    
    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: 9383
    
    2

Any help guys? Does something like that even exists?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NamedNativeQuery in JPA