Good morning,
I have a problem that has been bothering me for two days. The problem in question, is that I have an X object with some data in memory, and when I consult in bbdd the X object to check if what I have in memory and bbdd is the same, my memory object is changed with what is in bbdd.
//Operaciones operacionMemoria --> Este objeto contiene los datos en memoria, diferentes de los de BBDD.
OperacionesDaoImpl dao = new OperacionesDaoImpl(EntityManager);
OperacionesId idOperacion = new OperacionesId(idOperacion, beo);
Operaciones operacionbbdd = null;
try {
operacionbbdd = dao.getOperacionById(idOperacion);
It is just after consulting the operation in BBDD, which also changes the Memory operation that had the changes.
Any ideas?
Thank you very much.