I downloaded the latest release of Hibernate3 and HibernateAnnotations and it seemed that statements such as
Code:
HibernateFilter.beginTransaction();
HibernateFilter.getSession().save(UserObj);
HibernateFilter.commitTransaction();
HibernateFilter.beginTransaction();
HibernateFilter.getSession().saveOrUpdate(UserObj);
HibernateFilter.commitTransaction();
HibernateFilter.beginTransaction();
HibernateFilter.getSession().persist(UserObj);
HibernateFilter.commitTransaction();
is not making any new entries in the database, inspite of being followed by flush and close statements. I have built my test code on top of the examples found in HibernateExt/MetaData (Annotations).
I can only presume that the Hibernate3 release used :
# Hibernate 3.1 alpha 1 (24.06.2005) development
may not be the right version and I am downloading
* Hibernate 3.0.5 (25.05.2005) production
with the hope that
# Hibernate Annotations 3.1 beta 3 Preview (24.06.2005) development
will work fine with the last stable production release OR was built and tested with the last stable and production release.
Kindly let me know if I am exploring in the right direction. Ofcourse in future, mentioning the version of other releases of dependent libraries (especially to that of Hibernate-Core) would be of good help.