Files

9 lines
521 B
Plaintext

change a managed entity, no save call:
SQL> select e1_0.id,e1_0.city,e1_0.zip,e1_0.department_id,e1_0.level,e1_0.name,e1_0.salary from Employee e1_0 where e1_0.id=?
SQL> update Employee set city=?,zip=?,department_id=?,level=?,name=?,salary=? where id=?
count visible inside the transaction (AUTO flush before the query): 2
persist then query:
SQL> select nextval('Employee_SEQ')
SQL> insert into Employee (city,zip,department_id,level,name,salary,id) values (?,?,?,?,?,?,?)
SQL> select count(e1_0.id) from Employee e1_0