Ahh, just noticed - my mapping is abstract! I'm still confused about if my entity needs to be cast to IMarshallable, and what I need to do. Thanks!
Robert On Nov 14, 2007 12:40 PM, robert lazarski <[EMAIL PROTECTED]> wrote: > Thanks for the reply Günther Wieser, > > These additional binding classes, when you say runtime, do I need > these in the classloader when marshalling? Or are they just for the > code gen stage of jibx? > > What's strange to me is that in my jibx based axis2 code it handles my > objects just fine. In my working axis2 code, the code gen casts to > IMarshallable. What I may need to do is this: > > IBindingFactory ibf = > org.jibx.runtime.BindingDirectory.getFactory("binding", > "com.wazollc.alphatheory.hibernate.bo", > EntityMarshaller.class.getClassLoader()); > org.jibx.runtime.IMarshallable mctx = (org.jibx.runtime.IMarshallable)bo; > > But my hibernate objects would then be tied to jibx. Is that what I > have to do? Here's my simple mapping - AFAICT I'm doing things as you > say I need to - do you see something wrong? Thanks for the help!!! > > <binding xmlns:tns="http://wazollc.com/alphatheory/hibernate/bo" > name="binding" package="com.wazollc.alphatheory.hibernate.bo" > force-classes="true"> > <namespace uri="http://wazollc.com/alphatheory/hibernate/bo" > default="elements" prefix="ns1"/> > <namespace > uri="http://wazollc.com/alphatheory/webservices/ATWSServer/ATWSServer" > prefix="ns2"/> > <mapping abstract="true" type-name="tns:exchangePermissionBO" > class="com.wazollc.alphatheory.hibernate.bo.ExchangePermissionBO"> > <value style="attribute" name="id" get-method="getId" > set-method="setId" usage="optional"/> > <value style="attribute" name="version" get-method="getVersion" > set-method="setVersion" usage="optional"/> <value style="element" > name="name" get-method="getName" set-method="setName" > usage="optional"/> > <value style="element" name="code" get-method="getCode" > set-method="setCode" usage="optional"/> > </mapping> > </binding> > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users