Please review second patch for hibernate-core-3.5.6-Final. Dynamic and named query parameters binding was refactored.