Hi there,
I have this problem with a particular many-to-one association where I execute an hql find and send it a not persisted object as parameter . the interesting thing is this query always worked BEFORE ADDING VERSIONs (to both objects in association).
the hql query looks like:
Code:
getHibernateTemplate().find("from A where type = ? ", aType);
where aType is an instance of the associated model, passed via parameters from the presentation to the service/dao layer
the execution here throws a TransientObjectException.
can somebody explain me why this happens?
thanks