Best code examples for Hibernate ORM LockEvent class (org.hibernate.event.spi.LockEvent)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM LockEvent class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM LockEvent examples from Open Source projects
This code example shows how to use the following methods: getEntityName, getLockMode, getLockOptions, getObject, getSession
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