hi all,
I am very new to hibernate and I am following a simple one to many example that I found on
"Vaannila.com".
these are my tables :
my hibernate.cfg.xml
my HibernateUtil.java
this my student.java bean:
this my student.hbm.xml:
my phone.java bean
my phone.hbm.xml
my main method class:
my complete output:
can some please explain to me why i am getting a duplicate entry exception?
Thank You!!!
Shankha