I'm not an Hibernate expert, but there is one very important thing that I think your code is missing:
you're neither beginning, closing a Transaction nor committing your insert. Therefore Hibernate keeps the object you created in its object cache.
Try something like this:
except that you should obviously do your object creating instead of doing a select in lines 6-11
(taken from laliluna)
Joined: Apr 12, 2009
joe that worked . Thanks
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com