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 Parsers

 
Paul Croarkin
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Patrick and Nick,

Could you outline the pros / cons of using the new AST parser versus using the classic HQL parser?
 
Nick Heudecker
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't noticed much difference from the developer perspective. The really nice thing about the AST parser is how easy it is to add native functions to your chosen Dialect subclass using the SQLFunction interface.
 
Patrick Peak
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't really dug into the new parser enought yet to do a valid compare and constrast. I suspect it won't matter much for projects started with Hibernate 3.0, if anything giving more meaningful error messages.

The one time it could possiblybe an issue is when updating a project with lots of existing HQL from 2.0 to 3.0. Nick ran into this a bit while writing the book I believe.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic