Created
July 14, 2017 06:07
-
-
Save calvincodes/fdec5da5b8447edfc52d94e501dcef6a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void entityIsPersistent(PersistEvent event, Map createCache) { | |
LOG.trace( "Ignoring persistent instance" ); | |
final EventSource source = event.getSession(); | |
//TODO: check that entry.getIdentifier().equals(requestedId) | |
final Object entity = source.getPersistenceContext().unproxy( event.getObject() ); | |
final EntityPersister persister = source.getEntityPersister( event.getEntityName(), entity ); | |
if ( createCache.put( entity, entity ) == null ) { | |
justCascade( createCache, source, entity, persister ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment