Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » EclipseLink Moxy Dynamic JAXB strange behavior for standard XSD restrictions(Moxy support for standard XSD restrictions)
icon5.gif  EclipseLink Moxy Dynamic JAXB strange behavior for standard XSD restrictions [message #1730670] Wed, 27 April 2016 14:26
Ruslan Zenin is currently offline Ruslan ZeninFriend
Messages: 1
Registered: April 2016
Junior Member

I'm trying to make EclipseLink Moxy Dynamic entity work with XSD restrictions (EclipseLink version 2.5.2). Lets say I want to restrict usage of some elements from my "base" type. e.g.
<xs:complexType name="PersonName">
            <xs:element name="FirstName" type="xs:string" minOccurs="0" />
            <xs:element name="LastName" type="xs:string" minOccurs="0" />
            <xs:element name="MiddleName" type="xs:string" minOccurs="0" />
            <xs:element name="AliasName" type="xs:string" minOccurs="0" />
<xs:restriction base="PersonName">
    <xs:element name="AliasName" type="xs:string" minOccurs="0" />

How can I generate a valid XML with MOXy? I tried static and dymamic MOXy beans/entities with no luck.

In more details I demonstrate this issue (with all the code) here:

[Updated on: Thu, 19 May 2016 14:22]

Report message to a moderator

Previous Topic:IndirectList executes a contains() check on add(). Why?
Next Topic:Uni-directional OneToMany problems with JPA2.0 -> JPA2.1 migration
Goto Forum:

Current Time: Wed Mar 03 03:44:13 GMT 2021

Powered by FUDForum. Page generated in 0.01896 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top