Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

unexpected token when doing createQuery on a stored procedure  RSS feed

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

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?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!