EntityPersister createProxy - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for EntityPersister createProxy method.

This code example shows how to use the following methods:createProxy, hasProxy
	} 
 
	public void close() { 
		managedClose(); 
	} 
 
	public ConnectionReleaseMode getConnectionReleaseMode() { 
		return factory.getSettings().getConnectionReleaseMode(); 
	} 
 
	@Override 
	public boolean shouldAutoJoinTransaction() { 
		return true; 
	} 
 
	public boolean isAutoCloseSessionEnabled() { 
		return factory.getSettings().isAutoCloseSessionEnabled(); 
	} 
 
	public boolean isFlushBeforeCompletionEnabled() { 
4
CodeRank
This code example shows how to use the following methods:createProxy, getConcreteProxyClass, hasProxy
	 */ 
	public Object unproxyAndReassociate(Object maybeProxy) throws HibernateException { 
		if ( maybeProxy instanceof ElementWrapper ) { 
			maybeProxy = ( (ElementWrapper) maybeProxy ).getElement(); 
		} 
 
		if ( maybeProxy instanceof HibernateProxy ) { 
			HibernateProxy proxy = (HibernateProxy) maybeProxy; 
			LazyInitializer li = proxy.getHibernateLazyInitializer(); 
			reassociateProxy(li, proxy); 
			return li.getImplementation(); //initialize + unwrap the object 
		} 
		else { 
			return maybeProxy; 
		} 
	} 
 
	/** 
	 * Attempts to check whether the given key represents an entity already loaded within the 
	 * current session. 

3
CodeRank
createProxy Method Overview
Create a new proxy instance
See Code Examples for other Hibernate ORM EntityPersister Methods: