• Post Reply Bookmark Topic Watch Topic
  • New Topic

JpA + select nvl(max(att),0)  RSS feed

 
Jorge Bendahan
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i'm using oracle10g database and eclipselink, I need to obtain the last inserted key from the table so i've created this query


but when the table is empy(sometimes it might get empty)
i'm getting ILEGAL ARGUMENT EXCEPTION, cause: JPQL Exception, detail: "An exception occurred while creating a query in EntityManager". What i'm doing wrong?

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