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.
2 thoughts on “Hibernate mapping error”
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. 🙁