Quote:
there is no methods to flush() single entity. so use evict()....
i m used this technique in my project, i works fine.
But it will not work for neoscript since it is a new entity that is scheduled for insertion with session.save(). There is no information in the database about this object.
Quote:
there is no methods to flush() single entity
As far as I know this is correct. A flush() always flushes everything.
However I know that Session.save() does an immediate insert with some identifier generators (eg. those that depend on the database for generating the ID). But it also seems like there is going to be some changes with respect to this in Hibernate 3.4 (
http://opensource.atlassian.com/project ... e/HHH-2439)