T - entity class of this adapterpublic class ReferenceAdapterV2<T extends org.eclipse.persistence.internal.weaving.PersistenceWeavedRest> extends XmlAdapter<T,T>
| Constructor and Description |
|---|
ReferenceAdapterV2() |
ReferenceAdapterV2(PersistenceContext context)
Instantiates a new reference adapter.
|
| Modifier and Type | Method and Description |
|---|---|
T |
marshal(T o)
Marshal just passes through.
|
T |
unmarshal(T o)
If 'canonical' or 'self' link is present loads entity from the database.
|
public ReferenceAdapterV2()
public ReferenceAdapterV2(PersistenceContext context)
context - persistent context (mandatory)public T marshal(T o) throws Exception
marshal in class XmlAdapter<T extends org.eclipse.persistence.internal.weaving.PersistenceWeavedRest,T extends org.eclipse.persistence.internal.weaving.PersistenceWeavedRest>o - Exceptionpublic T unmarshal(T o) throws Exception
unmarshal in class XmlAdapter<T extends org.eclipse.persistence.internal.weaving.PersistenceWeavedRest,T extends org.eclipse.persistence.internal.weaving.PersistenceWeavedRest>Exception