Wednesday, 15 June 2011

java - Locking in JPA/EclipseLink (Postgres 9.1) -



java - Locking in JPA/EclipseLink (Postgres 9.1) -

i refresh entity locktype pessimistic_write.

tab1 tab1 = em.find(tab1.class, id, lockmodetype.pessimistic_write); em.refresh(tab1, lockmodetype.pessimistic_write);

i have 3 tables:

public class tab1{int id;string name;tab2 tab2;} public class tab2{int id;string name;tab3 tab3;} public class tab3{int id;string name;}

which info or tables locked (see example)?

1) row id in tab1? 2) entire table tab1? 3) entire table tab1 , tab2 4) entire table tab1,tab2 , tab3,because there reference tab2 , tab3?

java postgresql jpa locking eclipselink

No comments:

Post a Comment