I am using ehcache as second level cache and it's working fine until I call session.refresh after I have saved an object. If I look at the log, HB tells me this..:
Code:
TwoPhaseLoad - adding entity to second-level cache: [no.havleik.dt.model.OrdreNew#6343]
08.04.2006 00:43:10,327 DEBUG ReadWriteCache - Caching: no.havleik.dt.model.OrdreNew#6343
08.04.2006 00:43:10,327 DEBUG EhCache - key: no.havleik.dt.model.OrdreNew#6343
08.04.2006 00:43:10,327 DEBUG ReadWriteCache - Item was locked: no.havleik.dt.model.OrdreNew#6343
08.04.2006 00:43:10,327 DEBUG TwoPhaseLoad - done materializing entity [no.havleik.dt.model.OrdreNew#6343]
As long as I don't call refresh after I save, I get no locks... (The reason why I call refresh, is because I am using triggers...)
How can I unlock this object?
Regards,
BTJ