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() { 
	public ConnectionReleaseMode getConnectionReleaseMode() { 
		return factory.getSettings().getConnectionReleaseMode(); 
	public boolean shouldAutoJoinTransaction() { 
		return true; 
	public boolean isAutoCloseSessionEnabled() { 
		return factory.getSettings().isAutoCloseSessionEnabled(); 
	public boolean isFlushBeforeCompletionEnabled() { 
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. 

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