Code examples for LockEvent

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
56:	if ( event.getObject() == null ) { 
-
60:	if ( event.getLockMode() == LockMode.WRITE ) { 
-
64:	SessionImplementor source = event.getSession(); 
-
66:	Object entity = source.getPersistenceContext().unproxyAndReassociate( event.getObject() ); 
-
72:	final EntityPersister persister = source.getEntityPersister( event.getEntityName(), entity ); 
-
74:	if ( !ForeignKeys.isNotTransient( event.getEntityName(), entity, Boolean.FALSE, source ) ) { 
-
81:	entry = reassociate(event, entity, id, persister); 
-
85:	upgradeLock( entity, entry, event.getLockOptions(), event.getSession() ); 
-
89:	EventSource source = event.getSession(); 
-
93:	.cascade( persister, entity, event.getLockOptions() ); 
Full Snippet Info
7
CodeRank