Add hibernate-jpa module: 40 runnable Hibernate 7 / JPA interview answers on PostgreSQL 16
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Cfo2K4u4rF18QsPXPFnytf
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
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
|
||||
Reference in New Issue
Block a user