MOXyを使用すると、json出力でオブジェクトモデルの一部をフラット化できます
すなわち
<java-type name="Medium">
<java-attributes>
<xml-element java-attribute="trackList" xml-path="."/>
</java-attributes>
</java-type>
しかし、静的クラスの子であるクラスでフォールドしたい場合は、次のようになります
<java-type name="Medium.TrackList">
<java-attributes>
<xml-element java-attribute="artistList" xml-path="."/>
</java-attributes>
</java-type>
それは文句を言う
Exception Description: Could not load class [Medium.TrackList] declared in the external metadata file. Please ensure that the class name is correct, and that the correct ClassLoader has been set.
at org.eclipse.persistence.exceptions.JAXBException.couldNotLoadClassFromMetadata(JAXBException.java:376)
at org.eclipse.persistence.jaxb.JAXBContext$TypeMappingInfoInput.getXmlBindingsClasses(JAXBContext.java:979)
at org.eclipse.persistence.jaxb.JAXBContext$TypeMappingInfoInput.createContextState(JAXBContext.java:879)
at org.eclipse.persistence.jaxb.JAXBContext.<init>(JAXBContext.java:157)
これを解決するにはどうすればよいですか?