In my Entity Bean I have a @Version annotation. When I am trying to persist an object I receive the following exception: [org.hibernate.type.IntegerType] could not bind value '1' to parameter: 1; The statement is closed. The first parameter is exacly the version. With JBoss-4.0.4 it worked, with JBoss-4.0.5 it does not. Can somebody help me with this problem? Is it a bug?