Class LinkAdapter
java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Object>
org.eclipse.persistence.jpa.rs.util.xmladapters.LinkAdapter
Used with JAXB to convert from a URL representing an relationship to an object
It provides functionality at marshall and unmarshall time
At marshall time, the target of a relationship will be marshalled as a URL that could be
used to find the object through a REST service
At unmarsall time, the URL will be deconstructed and used to find the object in JPA.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
context
-
-
Constructor Details
-
LinkAdapter
public LinkAdapter() -
LinkAdapter
-
-
Method Details
-
unmarshal
- Specified by:
unmarshal
in classXmlAdapter<String,
Object> - Throws:
Exception
-
constructObjectForId
-
marshal
- Specified by:
marshal
in classXmlAdapter<String,
Object> - Throws:
Exception
-