Best code examples for Hibernate ORM DefaultFlushEventListener class (org.hibernate.event.internal.DefaultFlushEventListener)

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

Hibernate ORM DefaultFlushEventListener examples from Open Source projects
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 ); 
	} 
 
} 
Full Snippet Info
4
CodeRank