Skip to content
highsource edited this page Dec 26, 2014 · 1 revision

Sample PO Project

Please see the jsonix-schema-compiler-sample-po-<version>-<type>-src.zip files.

This sample project simply compiles the src/main/resources/purchaseorder.xsd schema using the bindings file src/main/resources/bindings.xjb.

Jsonix modules PurchaseOrder.std.js (standard naming) and PurchaseOrder.cmp.js (compact naming) are generated in the target/generated-sources/xjc target directory. This is configured in the bindings file:

<jsonix:module name="PurchaseOrder">
	<jsonix:mapping name="PO" package="org.hisrc.jsonix.demos.po"/>
	<jsonix:output naming="standard" fileName="${module.name}.std.js"/>
	<jsonix:output naming="compact" fileName="${module.name}.cmp.js"/>
</jsonix:module>
Clone this wiki locally