T
- entity class of this adapterpublic class ReferenceAdapterV2<T extends org.eclipse.persistence.internal.jpa.rs.weaving.PersistenceWeavedRest>
extends jakarta.xml.bind.annotation.adapters.XmlAdapter<T,T>
Modifier and Type | Field and Description |
---|---|
protected PersistenceContext |
context |
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.
|
protected PersistenceContext context
public ReferenceAdapterV2()
public ReferenceAdapterV2(PersistenceContext context)
context
- persistent context (mandatory)Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.