Hibernate ORM DefaultFlushEventListener - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM DefaultFlushEventListener class.

This code example shows how to use the following methods:
 * In EJB3, it is the create operation that is cascaded to unmanaged entities at flush time (instead of the 
 * save-update operation in Hibernate). 
 * 
 * @author Gavin King 
 */ 
public class EJB3FlushEventListener extends DefaultFlushEventListener implements HibernateEntityManagerEventListener { 
 
	public static final FlushEventListener INSTANCE = new EJB3FlushEventListener(); 
 
	protected CascadingAction getCascadingAction() { 
		return CascadingAction.PERSIST_ON_FLUSH; 
	} 
 
	protected Object getAnything() { 
		return IdentityMap.instantiate( 10 ); 
	} 
 
} 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java