Well, it consists of about 50 classes, so I guess it's a little too much...<div><br></div><div>But to give you an idea:</div><div><br></div><div><div>public class EventVrijgaveType</div><div> implements Serializable</div>
<div>{</div><div><br></div><div> private final static long serialVersionUID = 12343L;</div><div> @XmlElement(name = "SourceSystem", required = true)</div><div> protected String sourceSystem;</div><div> @XmlElement(name = "CreatedBy", required = true)</div>
<div> protected String createdBy;</div><div> @XmlElement(name = "CreationDateTime", required = true, type = String.class)</div><div> @XmlJavaTypeAdapter(Adapter1 .class)</div><div> @XmlSchemaType(name = "dateTime")</div>
<div> protected Date creationDateTime;</div><div> @XmlElement(name = "ValidateParticipationEvent")</div><div> protected CosValidateEventType validateParticipationEvent;</div><div> @XmlElement(name = "InitParticipationEvent")</div>
<div> protected CosInitCloseEventType initParticipationEvent;</div><div> @XmlElement(name = "CloseParticipationEvent")</div><div> protected CosInitCloseEventType closeParticipationEvent;</div><div> @XmlElement(name = "PlanOrderEvent")</div>
<div> protected CosPdcaEventType planOrderEvent;</div><div> @XmlElement(name = "DoOrderEvent")</div><div> protected CosPdcaEventType doOrderEvent;</div><div> @XmlElement(name = "CheckOrderEvent")</div>
<div> protected CosPdcaEventType checkOrderEvent;</div><div> @XmlElement(name = "ActOrderEvent")</div><div> protected CosPdcaEventType actOrderEvent;</div><div><br></div><div> getters and setters follow, e.g.</div>
<div><br></div><div><div> public CosPdcaEventType getPlanOrderEvent() {</div><div> return planOrderEvent;</div><div> }</div><div><br></div><div> public void setPlanOrderEvent(CosPdcaEventType value) {</div>
<div> this.planOrderEvent = value;</div><div> }</div><div><br></div><div> </div><div> public CosPdcaEventType getDoOrderEvent() {</div><div> return doOrderEvent;</div><div> }</div><div><br></div><div>
</div><div> public void setDoOrderEvent(CosPdcaEventType value) {</div><div> this.doOrderEvent = value;</div><div> }</div><div><br></div><div> public CosPdcaEventType getCheckOrderEvent() {</div><div> return checkOrderEvent;</div>
<div> }</div></div><div><br></div><div>--- next class ---</div><div><br></div><div><div>@XmlAccessorType(XmlAccessType.FIELD)</div><div>@XmlType(name = "")</div><div>@XmlRootElement(name = "EventVrijgave")</div>
<div>public class EventVrijgave</div><div> extends EventVrijgaveType</div><div> implements Serializable</div><div>{</div><div><br></div><div> private final static long serialVersionUID = 12343L;</div><div> @XmlAttribute(name = "Version")</div>
<div> protected String version;</div></div><div><br></div><div> getter and setter follow</div><div><br></div><div>--- next class ---</div><div><br></div><div><div>@XmlAccessorType(XmlAccessType.FIELD)</div><div>@XmlType(name = "CosPdcaEventType", propOrder = {</div>
<div> "bundleName",</div><div> "bundleVersion",</div><div> "bundlePort",</div><div> "bundleMessage",</div><div> "actId",</div><div> "stoppedTime",</div>
<div> "participationId",</div><div> "orderId",</div><div> "statusPlanVersionId",</div><div> "certificationObjectId",</div><div> "objectTypeCode",</div><div>
"animalSpeciesCode",</div><div> "vbn",</div><div> "statusPlanCode",</div><div> "version",</div><div> "productCode",</div><div> "statusCodeCurrent",</div>
<div> "statusCodeNew",</div><div> "actorType",</div><div> "actorRel"</div><div>})</div><div><br></div><div>--- next class ---</div><div>public class CosPdcaEventType</div><div> implements Serializable</div>
<div>{</div><div><br></div><div> private final static long serialVersionUID = 12343L;</div><div> @XmlElement(name = "BundleName", required = true)</div><div> protected String bundleName;</div><div> @XmlElement(name = "BundleVersion", required = true)</div>
<div> protected String bundleVersion;</div><div> @XmlElement(name = "BundlePort", required = true, nillable = true)</div><div> protected String bundlePort;</div><div> @XmlElement(name = "BundleMessage", required = true)</div>
<div> protected String bundleMessage;</div><div> @XmlElement(name = "ActId")</div><div> protected int actId;</div><div> @XmlElement(name = "StoppedTime", required = true, type = String.class)</div>
<div> @XmlJavaTypeAdapter(Adapter1 .class)</div><div> @XmlSchemaType(name = "dateTime")</div><div> protected Date stoppedTime;</div><div> @XmlElement(name = "ParticipationId")</div><div> protected int participationId;</div>
<div> @XmlElement(name = "OrderId")</div><div> protected int orderId;</div><div> @XmlElement(name = "StatusPlanVersionId")</div><div> protected int statusPlanVersionId;</div><div> @XmlElement(name = "CertificationObjectId")</div>
<div> protected int certificationObjectId;</div><div> @XmlElement(name = "ObjectTypeCode", required = true)</div><div> protected String objectTypeCode;</div><div> @XmlElement(name = "AnimalSpeciesCode", required = true)</div>
<div> protected String animalSpeciesCode;</div><div> @XmlElement(name = "VBN")</div><div> protected int vbn;</div><div> @XmlElement(name = "StatusPlanCode", required = true)</div><div> protected String statusPlanCode;</div>
<div> @XmlElement(name = "Version")</div><div> protected int version;</div><div> @XmlElement(name = "ProductCode", required = true)</div><div> protected String productCode;</div><div> @XmlElement(name = "StatusCodeCurrent", required = true)</div>
<div> protected String statusCodeCurrent;</div><div> @XmlElement(name = "StatusCodeNew", required = true)</div><div> protected String statusCodeNew;</div><div> @XmlElement(name = "ActorType", required = true)</div>
<div> protected String actorType;</div><div> @XmlElement(name = "ActorRel", required = true, type = Integer.class, nillable = true)</div><div> protected Integer actorRel;</div></div><div><br></div><div>
getters and setters follow....</div><div><br></div><div>Hope you get the idea....</div><div><br></div><div>Mylène</div><br><div class="gmail_quote">2010/6/16 Esteban Aliverti <span dir="ltr"><<a href="mailto:esteban.aliverti@gmail.com">esteban.aliverti@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">could you post your model here?<br><br><div class="gmail_quote">2010/6/16 Mylene <span dir="ltr"><<a href="mailto:mylenereiners@gmail.com" target="_blank">mylenereiners@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
Hi,<div><br></div><div>I get errors after I import my (JAXB-generated) model in Guvnor.</div><div>The original schemas are rather complicated, and thus the generated model depends heavily on inheritance. Could that be the problem? </div>
<div><br></div><div>The message I get is: U<span style="font-family:tahoma, arial, helvetica, sans-serif;color:rgb(68, 68, 68)">nable to validate package configuration (eg, DSLs, models) for [my_package]. Suggestion completions may not operate correctly for graphical editors for this package.</span></div>
<div><br></div><div>I don't get any completions... (but I guess that is to be expected after this error)</div><div><br></div><div>I'm using drools-5.0-guvnor-standalone, Java 1.6 and JAXB version 2.2.1</div><div>
<br></div><div>Can anyone point me in the right direction?</div><div><br></div>
<div>Thanks</div><div><br>-- <br>Mylene<br>
</div>
<br></div></div>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><div class="im"><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></div></blockquote></div><br><br clear="all"><br>-- <br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><font color="#888888"><br>Esteban Aliverti<br>
</font><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Mylene<br>
</div>