i am making a sample program using this link:
http://www.vaannila.com/hibernate/hibernate-example/hibernate-mapping-one-to-one-1.html
i have following tables in sqlserver:
i have take studentId type int in Student.hbm.xml:
i have take addressId type int in Address.hbm.xml:
i am facing following exception:
please help.