Hi, I have a question about session management (I read
http://hibernate.org/42.html but couldn't find my answer there...).
I have 2 objects, A & B, which are completely seperate - seperate tables, mappings etc.
I create a new instance of A in memory - as yet unsaved to the database. I then call a calculation method of A to process some of the associated data (still all in memory).
As part of the calculations, I need to load an instance of object B from the database to reference a piece of information. I do this though a criteria query, calling ICriteria.UniqueResult(). At this point, the session flushes and saves object A. I do not want object A saved automatically - how do I prevent nHibernate doing this?
Hibernate version: 1.0.3.0
Regards, Ben