Hello, again.
I am trying to pull in OSIS documents and then create an OSIS document. I am reading the following lines, for example:
<verse osisID="Obad.1.1">
<w lemma="2377" n="1.0" morph="HNcmsc" id="31xeN">חֲז֖וֹן</w>
<w lemma="5662" n="1" morph="HNp" id="31Nvk">עֹֽבַדְיָ֑ה</w>
here is the definition I'm using to read into:
public class OsisVerse extends DocumentVerse {
@JacksonXmlElementWrapper(useWrapping = false)
@JacksonXmlProperty(localName = "note")
private List<OsisNote> osisNotes;
@JacksonXmlProperty(localName = "osisID")
private String uniqueId;
@JacksonXmlProperty(localName = "seg")
private String segment;
@JacksonXmlElementWrapper(useWrapping = false)
@JacksonXmlProperty(localName = "w")
private List<OsisWord> osisWords;
And the deserialize seems to be working great.
Now I make my changes and try to write using the same classes and I get, for example:
<verse><words><words id="31yNB" lemma="l/4421" morph="HRd/Ncfsa" n="0" x-source-word="לַ/מִּלְחָמָֽה">(...)</words></words>
So it appears that it's ignoring my annotations and serializing as it feels is best.
Is there a way to fix this?