ma.glasnost.orika.unenhance
Class HibernateUnenhanceStrategy
java.lang.Object
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).
|
Method Summary |
|
unenhanceObject(T object,
Type<T> type)
|
|
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 |
HibernateUnenhanceStrategy
public HibernateUnenhanceStrategy()
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.