Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate MySQL5Dialect registerFunction limit

 
Luis Parente
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have hibernate ORM with the implementation JPA, I have registered some functions like that:



The class extends of org.hibernate.dialect.MySQL5Dialect and it's work perfectly.

But now I want to register de function LIMIT, and I do the following:



but when I use it in my JPQL, exemple : Select pte.id From ProductEntity pte LIMIT 1, Hibernate trows an exception....


Could you help me with this stuff.

Thanks in advance.


Best regards.


 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic