Hibernate Team |
 |
Joined: Sun Sep 14, 2003 3:54 am Posts: 7256 Location: Paris, France
|
It depends, but mostly yes.
Hibernate coexist pretty well with concurrent access to DB (even from non Java world).
Hibernate allows you to give to it the underlying JDBC connection.
Hibernate allows you to access the underlying JDBC connection.
Thus concurrent modification within the same Tx is pretty easy.
But:
Hibernate use at least 1 level of cache (the session one). So changing an object on Hibernate and at the same time sneakily modify the associated row using the same connection will lead to strange behavior. Otherwise Tx demarcation will protect you pretty well.
_________________ Emmanuel
|
|