My english is not that good, all I want to say is in the pictures use the sql statement like this if i change the first parameter to 0 throw Exception if I uer sql-query Node in hbm.xml int position start from 1 throw Exception