<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Run Schema Builder</title><link>https://sourceforge.net/p/docflower/wiki/Run%2520Schema%2520Builder/</link><description>Recent changes to Run Schema Builder</description><atom:link href="https://sourceforge.net/p/docflower/wiki/Run%20Schema%20Builder/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 19 Dec 2012 15:18:03 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/docflower/wiki/Run%20Schema%20Builder/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Run Schema Builder modified by Alexander Ilyin</title><link>https://sourceforge.net/p/docflower/wiki/Run%2520Schema%2520Builder/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -29,3 +29,5 @@
            @Extension(vendorName = "datanucleus", key = "enum-value-getter", value = "getValue") })
    private TestEnumType someTestField;
 ~~~~~~~~~~~~~~~~~~
+
+NOTE:@Extensions must be the last annotation of the field defined right before field definition.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexander Ilyin</dc:creator><pubDate>Wed, 19 Dec 2012 15:18:03 -0000</pubDate><guid>https://sourceforge.net1e477c46eea7bf98e1d392579531ff590ef4144b</guid></item><item><title>WikiPage Run Schema Builder modified by Alexander Ilyin</title><link>https://sourceforge.net/p/docflower/wiki/Run%2520Schema%2520Builder/</link><description>Schema Builder creates XSD schemes for classes to be serialized and sent to/from the client.

It is ran from cmd and usually has following parameters: 


USEDIRHIERARCHY=true OVERWRITEEXISTINGSCHEMAS=false USECAPITALIZATION=true ROOTPATH=../com.yourcompany.yourproject/bin/com/com/yourcompany/yourproject/rightpanedatas/ OUTPATH=../com.yourcompany.yourproject/resources/schemas/ BASEPACKAGEPATH=../com.yourcompany.yourproject/bin/ STORAGEID=net://com.yourcompany.yourproject CLASSPATH=../com.yourcompany.yourproject/bin/,../DocFlowerServer/bin/ BUNDLES=net://com.yourcompany.yourproject,net://org.docflower.server


IMPORTANT: If you process enhanced classes like JDO classes usually are you have to clean your project first to get read another enhanced bytecode.

Be careful. It's smart for now to delete old xsds before running.


To generate proper schema for enum type the references to enum type should be with DataNucleus annotation like:

~~~~~~~~~~~~~~~~~~
@Extensions({
  @Extension(vendorName = "datanucleus", key = "enum-getter-by-value", value = "getEnumByValue"),
  @Extension(vendorName = "datanucleus", key = "enum-value-getter", value = "getValue") })
~~~~~~~~~~~~~~~~~~
F.g.:

~~~~~~~~~~~~~~~~~~
	@Persistent
	@Column(length = 30)
	@Label("Test field")
	@Extensions({
			@Extension(vendorName = "datanucleus", key = "enum-getter-by-value", value = "getEnumByValue"),
			@Extension(vendorName = "datanucleus", key = "enum-value-getter", value = "getValue") })
	private TestEnumType someTestField;
~~~~~~~~~~~~~~~~~~</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexander Ilyin</dc:creator><pubDate>Tue, 18 Sep 2012 11:08:19 -0000</pubDate><guid>https://sourceforge.net9d08de51350a41f1d46f90380290192ddcc82078</guid></item></channel></rss>