• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NamedNativeQuery in JPA

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any help guys? Does something like that even exists?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic