Hi there,
I'm new with Hibernate and I'm working my way through a case.
My question is about loading the object from the DB.
Code:
Bankrekening rekening2 = (Bankrekening)session.load(Bankrekening.class, 123L, LockMode.READ);
Bankrekening rekening3 = (Bankrekening)session.load(Bankrekening.class, 123L, LockMode.READ);
I'm loading the same object twice. However, the code above results in two references (rekening1 and rekening2) which refer to the same object.
I would like to have two objects (I'm aware that they are still 'equal', but they should not refer to the same object)
Can anyone help me out on this?
Thanks in advance!
Kind regards,
Chris