|Just setting a property causes an sql update [message #559187]
||Wed, 15 September 2010 17:06
| Mauro Flores
Registered: September 2009
If I set a property of an object inside a transactional context, an sql update is generated to that property. No merge is called.!!!|
Is that a correct behavior?
Can I turn off this behavior?
AlunoED ed = em.find(AlunoED.class, 4492);
ed.setNomeAlu("Foo Boo Updated");
[EL Fine]: 2010-09-15 18:01:26.343--Connection(367156)--UPDATE APM_ALUNO SET NOME_ALU = ? WHERE (NRO_INT_ALU = ?)
bind => [Foo Boo Updated, 4492]
Powered by FUDForum
. Page generated in 0.01628 seconds