• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unexpected token when doing createQuery on a stored procedure

 
Pierre Rehnberg
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

I'm new at hibernate and I'm trying to execute a stored procedure but I'm not doing it right it seems.
This is what I try to do on a hibernate entity:



But I keep hitting QuerySyntaxExceptions like this:
Caused by: java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: unexpected token: FnGetAccountLogins near line 1, column 15 [select a from FnGetAccountLogins('CDG%') a]


Can someone point me in the right direction to overcome this?

cheers
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic