[jboss-dev-forums] [Design of JBossXB] - Re: Element order exception
alesj
do-not-reply at jboss.com
Fri Apr 18 04:21:54 EDT 2008
"alex.loubyansky at jboss.com" wrote : Here
| @XmlType(propOrder={"mappingFiles", "jarFiles", "classes", "properties"})
| | public class PersistenceUnitMetaData implements Serializable
|
| The only elements (and their order) this type has are listed in the propOrder. There is no jta-data-source at all
Aha, don't know what I was thinking. :-)
I thought you only need to list the ones that are collections of elements.
Which doesn't make sense.
OK, getting this one now:
| Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Attribute is not bound: element owner {http://java.sun.com/xml/ns/persistence}property, attribute name
|
The mapping:
| @XmlElementWrapper(name="properties")
| @JBossXmlMapEntry(name="property")
| @JBossXmlMapKeyAttribute(name="name")
| @JBossXmlMapValueAttribute(name="value")
| public void setProperties(Map<String, String> properties)
| {
| this.properties = properties;
| }
|
and the same xml as before.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145073#4145073
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145073
More information about the jboss-dev-forums
mailing list