FileDocCategorySizeDatePackage
EntityNameInterceptor.javaAPI DocHibernate 3.2.5729Tue Nov 29 07:38:48 GMT 2005org.hibernate.test.dynamicentity.tuplizer

EntityNameInterceptor

public class EntityNameInterceptor extends org.hibernate.EmptyInterceptor
author
Steve Ebersole

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetEntityName(java.lang.Object object)
The callback from Hibernate to determine the entity name given a presumed entity instance.

param
object The presumed entity instance.
return
The entity name (pointing to the proper entity mapping).

		String entityName = ProxyHelper.extractEntityName( object );
		if ( entityName == null ) {
			entityName = super.getEntityName( object );
		}
		return entityName;