org.hibernate.type.IntegerType.set(IntegerType.java:39)
Let say you declare “long” as your variable data type in your class file, but you put type =”int” in hibernate mapping file, above exception will throw.
so, be careful when mapping your hibernate xml file.
it sounds like a good tips, doesn’t it?
Down side of using XML and Java, same as Java and JSP, there are not validation. 🙁