ma.glasnost.orika.unenhance
Class HibernateUnenhanceStrategy

java.lang.Object
  extended by ma.glasnost.orika.unenhance.HibernateUnenhanceStrategy
All Implemented Interfaces:
UnenhanceStrategy

public class HibernateUnenhanceStrategy
extends Object
implements UnenhanceStrategy

HibernateUnenhanceStrategy is used to unwrapped objects from their Hibernate-generated proxy, which may have been created to match methods of a super-type (missing some of the details important in a child class mapping).


Constructor Summary
HibernateUnenhanceStrategy()
           
 
Method Summary
<T> T
unenhanceObject(T object, Type<T> type)
           
<T> Type<T>
unenhanceType(T object, Type<T> type)
          Should return the unenhanced type to be used when determining attribute mapping information for the type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateUnenhanceStrategy

public HibernateUnenhanceStrategy()
Method Detail

unenhanceType

public <T> Type<T> unenhanceType(T object,
                                 Type<T> type)
Description copied from interface: UnenhanceStrategy
Should return the unenhanced type to be used when determining attribute mapping information for the type.

Specified by:
unenhanceType in interface UnenhanceStrategy
Returns:

unenhanceObject

public <T> T unenhanceObject(T object,
                             Type<T> type)
Specified by:
unenhanceObject in interface UnenhanceStrategy


Copyright © 2013 Glasnost. All Rights Reserved.