Hi,
I'm trying to solve some of my problems when updating composite-id'ed objects... I've implemented my little interceptor (madmax), which just test a value to decide if the object isUnsaved or not.
I get to the isUnsaved, and it seems to work fine, returning false when the object has been saved before... but...seems like my saveOrUpdate is not doing anything with my object.
Hibernates log says:
Code:
- saveOrUpdate() previously saved instance
- updating [com.previsora.data.hibernate.Beneficiario#com.previsora.data.hibernate.BeneficiarioPK@5b46]
- calling onUpdate()
- flushing session
- Flushing entities and processing referenced collections
- Processing unreferenced collections
- Scheduling collection removes/(re)creates/updates
- Flushed: 0 insertions, 0 updates, 0 deletions to 1 objects
- Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
- listing entities:
- com.previsora.data.hibernate.Beneficiario{idioma=null, apellidos=null, anyonac=null, estadoCivil=null, idProfesion=null, PKBeneficiario=BeneficiarioPK{numAsegurado=2, numSolicitud=19}, mesnac=null, telfMovilProfesional=null, sexo=null, mail=null, dianac=null, dni=null, permisoResidencia=null, nombre=null, telfMovil=699065269, falsa=19, nacionalidad=null}
- executing flush
- post flush
Is Hibernate really trying to update my object...? I think it should, because of the first lines of the log... but I get no exception, and I get no change in the data neither.
The phone above is the changed field, and it doesn't get updated in the database.
What am I doing soooo wrong?
TIA,
_
Jorge