I'm wondernig what needs to be set in order to prevent flushing all queried objects when I only want to explicitly persist one.
My Hibernate Config/Mapping files do not have any cache entries.
Code:
SmoHeader hdr = (SmoHeader) q.iterate().next();
SmoHeaderId id = hdr.getId();
Transaction tx = s.beginTransaction();
hdr = (SmoHeader) s.get(SmoHeader.class, id);
hdr.setProfileCreated("JAKEHJ");
s.save(hdr);
tx.commit();
At the time of commit, all items returned from the query (q) are updated back to the database. I only want the s.save(hdr) to cause a single update at tx.commit()
Thanks in advance!