Hallo,
ich habe hier ein Problem beim Einfügen eines Datenobjekts in Form einer XML bzw. JSON. Und zwar soll das Datenobjekt mittels JPA (EclipseLink) gespeichert werden.
Die XML-Datei sieht beispielsweise so aus:
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>" +
"<profile>" +
"<isadriverprofile>TRUE</isadriverprofile>" +
"<userid>mmuster3</userid>" +
"<isauserprofile>TRUE</isauserprofile>" +
"<isaserviceprofile>TRUE</isaserviceprofile>" +
"<active>TRUE</active>" +
"</profile>"
Die Felder isadriverprofile, isauserprofile haben einen boolean-Wert in einer PostgreSQL Tabelle.
Mein Problem liegt darin, dass nur userid gespeichert wird und alle anderen XML-Elemente nicht berücksichtigt werden.
Für Hinweise und Tipps danke ich schonmal im Voraus.
Grüße
blablaman
ich habe hier ein Problem beim Einfügen eines Datenobjekts in Form einer XML bzw. JSON. Und zwar soll das Datenobjekt mittels JPA (EclipseLink) gespeichert werden.
Die XML-Datei sieht beispielsweise so aus:
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>" +
"<profile>" +
"<isadriverprofile>TRUE</isadriverprofile>" +
"<userid>mmuster3</userid>" +
"<isauserprofile>TRUE</isauserprofile>" +
"<isaserviceprofile>TRUE</isaserviceprofile>" +
"<active>TRUE</active>" +
"</profile>"
Die Felder isadriverprofile, isauserprofile haben einen boolean-Wert in einer PostgreSQL Tabelle.
Mein Problem liegt darin, dass nur userid gespeichert wird und alle anderen XML-Elemente nicht berücksichtigt werden.
Für Hinweise und Tipps danke ich schonmal im Voraus.
Grüße
blablaman