<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to round-trip-sample</title><link>https://sourceforge.net/p/dal4j/wiki/round-trip-sample/</link><description>Recent changes to round-trip-sample</description><atom:link href="https://sourceforge.net/p/dal4j/wiki/round-trip-sample/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 05 Nov 2012 22:33:08 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/dal4j/wiki/round-trip-sample/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage round-trip-sample modified by Harry Gardner</title><link>https://sourceforge.net/p/dal4j/wiki/round-trip-sample/</link><description>&lt;pre&gt;--- v13
+++ v14
@@ -59,7 +59,7 @@
                 &lt;readOnlyColumn&gt;COLUMN_NAME2&lt;/readOnlyColumn&gt;
             &lt;/readOnlyColumns&gt;
             &lt;injectCode&gt;&lt;![CDATA[
-    // Code to be added when code for SOME_TABLE is generated
+    // Code to be added when SOME_TABLE entity is generated
     private SomeObject mSomeObject;
     public void setSomeObject (SomeObject pVal) { mSomeObject = pval; }
     @OneToOne(cascade={CascadeType.ALL},fetch=FetchType.EAGER)
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Harry Gardner</dc:creator><pubDate>Mon, 05 Nov 2012 22:33:08 -0000</pubDate><guid>https://sourceforge.net4096be5422517ec70d27c850e021de0cb438aca3</guid></item><item><title>WikiPage round-trip-sample modified by Harry Gardner</title><link>https://sourceforge.net/p/dal4j/wiki/round-trip-sample/</link><description>&lt;pre&gt;--- v12
+++ v13
@@ -151,6 +151,7 @@
     &lt;views&gt;
         &lt;view&gt;
             &lt;name&gt;VIEW_NAME&lt;/name&gt;
+            &lt;primaryKeyColumn&gt;view1_primary_key_column_name&lt;/primaryKeyColumn&gt;
             &lt;imports&gt;
         import com.dal4j.mypackage.MyClass;
         import java.util.Collection;
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Harry Gardner</dc:creator><pubDate>Fri, 19 Oct 2012 14:29:56 -0000</pubDate><guid>https://sourceforge.net307ee1ff76dd1ec95287d5892d5ea0a090e7c83b</guid></item><item><title>WikiPage round-trip-sample modified by Harry Gardner</title><link>https://sourceforge.net/p/dal4j/wiki/round-trip-sample/</link><description>&lt;pre&gt;--- v11
+++ v12
@@ -1,7 +1,7 @@
 &lt;b&gt;Round Trip Code Generation Example&lt;/b&gt;
 The Round Trip Code generation project, located in samples/round-trip directory, demonstrates how to configure dal4j in order to customize the generated pojos. The type of decorators that can be injected into generated pojos includes:
 
-   + Entity relationships, use in conjunction with &amp;lt;readOnlyFields&amp;gt;.
+   + Entity relationships, use in conjunction with &amp;lt;readOnlyColumns&amp;gt;.
    + Global imports - imports added to every generated class.
    + Global Class level annotations - class annotations added to every generated Entity.
    + Class imports - Add imports to a specific class.
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Harry Gardner</dc:creator><pubDate>Sat, 01 Sep 2012 23:12:33 -0000</pubDate><guid>https://sourceforge.net254b64980eda276d25a5c82a2d9ebb5f30c6980d</guid></item><item><title>WikiPage round-trip-sample modified by Harry Gardner</title><link>https://sourceforge.net/p/dal4j/wiki/round-trip-sample/</link><description>&lt;pre&gt;--- v10
+++ v11
@@ -12,21 +12,21 @@
 These features allow customized Entities to be regenerated as the schema evolves. This concept is refered to as round-trip code generation and is something DAL4j strives to support.
 
 &lt;b&gt;Defining Entity Relationships&lt;/b&gt;
-The steps normally followed to allow entity relationships to be maintained across code generation cycles is:
+Do the following to allow entity relationships to be maintained across code generation cycles is:
 
-&lt;li&gt;Generate the entities&lt;/li&gt;
+&lt;li&gt; Generate the entities&lt;/li&gt;
 
-&lt;li&gt;Manually add relationships and other custom code (such as transient attributes, constants, etc) to the generated entities. i.e.:&lt;/li&gt;
+&lt;li&gt; Manually add relationships and other custom code (such as transient attributes, constants, etc) to the generated entities. i.e.:&lt;/li&gt;
 
     @OneToOne, @OneToMany, @ManyToMany including making columns read-only (as needed).
 
-&lt;li&gt;Test the relationships to verify they work as expected.&lt;/li&gt;
+&lt;li&gt; Test the relationships to verify they work as expected.&lt;/li&gt;
 
-&lt;li&gt;Add relationship code to the dal4j configuration file including read-only columns.&lt;/li&gt;
+&lt;li&gt; Add relationship code to the dal4j configuration file including read-only columns.&lt;/li&gt;
 
-&lt;li&gt;&lt;b&gt;IMPORTANT:&lt;/b&gt; Make sure to back-up the code hand modified and tested in steps 2 &amp; 3 above, just in case...&lt;/li&gt;
+&lt;li&gt; &lt;b&gt;IMPORTANT:&lt;/b&gt; Make sure to back-up the code hand modified and tested in steps 2 &amp; 3 above, just in case...&lt;/li&gt;
 
-&lt;li&gt;Re-generate the code and verify relationships have been added as expected&lt;/li&gt;
+&lt;li&gt; Re-generate the code and verify relationships have been added as expected&lt;/li&gt;
 
 In the sample application (samples/round-trip) a @OneToOne unidirectional relationship from User to Customer is added to src/com/dal4j/sample/simple/ejb/entity/User.java. In order for the relationships to be maintained across code generation cycles, it has been added to bin/config-mysql.xml and bin/config-sqlserver.xml.
 
@@ -99,7 +99,7 @@
 &lt;b&gt;$table_name -&lt;/b&gt; The name of the DB table used to generated the entity, lower case.
 &lt;b&gt;$TABLE_NAME -&lt;/b&gt; The name of the DB table used to generated the entity, upper case.
 
-&lt;b&gt;Class imports, class field, get method annotations, as well as code injection&lt;/b&gt;
+&lt;b&gt;Customization of class imports, attribute annotations, get method annotations, and code injection&lt;/b&gt;
 The following describes how to apply imports, class level annotations, and custom code to a specific entity derived from either a table or a view.
 
     &lt;relationships&gt;
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Harry Gardner</dc:creator><pubDate>Sat, 25 Aug 2012 01:52:02 -0000</pubDate><guid>https://sourceforge.net70c47500552a897e24aee99f687117ccc96c24c1</guid></item><item><title>WikiPage round-trip-sample modified by Harry Gardner</title><link>https://sourceforge.net/p/dal4j/wiki/round-trip-sample/</link><description>&lt;pre&gt;--- v9
+++ v10
@@ -1,5 +1,5 @@
 &lt;b&gt;Round Trip Code Generation Example&lt;/b&gt;
-The Round Trip Code generation project, located in samples/round-trip directory, demonstrates how to configure dal4j code generation to customize the generated pojos. The type of decorators which can be injected into generated pojos are:
+The Round Trip Code generation project, located in samples/round-trip directory, demonstrates how to configure dal4j in order to customize the generated pojos. The type of decorators that can be injected into generated pojos includes:
 
    + Entity relationships, use in conjunction with &amp;lt;readOnlyFields&amp;gt;.
    + Global imports - imports added to every generated class.
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Harry Gardner</dc:creator><pubDate>Sat, 25 Aug 2012 01:35:05 -0000</pubDate><guid>https://sourceforge.netc3967909bbe9df2e02e03bec916c617a7d0a9b5d</guid></item><item><title>WikiPage round-trip-sample modified by Harry Gardner</title><link>https://sourceforge.net/p/dal4j/wiki/round-trip-sample/</link><description>&lt;pre&gt;--- v8
+++ v9
@@ -1,6 +1,5 @@
 &lt;b&gt;Round Trip Code Generation Example&lt;/b&gt;
-The Round Trip Code generation project, located in samples/round-trip directory, demonstrates how to configure dal4j code generation to customize the generated pojos. The types of decorators that can be injected into generated
-pojos includes:
+The Round Trip Code generation project, located in samples/round-trip directory, demonstrates how to configure dal4j code generation to customize the generated pojos. The type of decorators which can be injected into generated pojos are:
 
    + Entity relationships, use in conjunction with &amp;lt;readOnlyFields&amp;gt;.
    + Global imports - imports added to every generated class.
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Harry Gardner</dc:creator><pubDate>Tue, 03 Jul 2012 03:26:56 -0000</pubDate><guid>https://sourceforge.netd0f6d78152f071fa6de7f9f67be4f599bd907310</guid></item><item><title>WikiPage round-trip-sample modified by Harry Gardner</title><link>https://sourceforge.net/p/dal4j/wiki/round-trip-sample/</link><description>&lt;pre&gt;--- v7
+++ v8
@@ -114,7 +114,6 @@
             &lt;classAnnotations&gt;
         @MyClassAnnotation(className="$ClassName", tableName="$TABLE_NAME")
             &lt;/classAnnotations&gt;
-
             &lt;!-- Add annotations to the get method for specific fields --&gt;
             &lt;columnProperties&gt;
               &lt;columnProperty&gt;
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Harry Gardner</dc:creator><pubDate>Tue, 12 Jun 2012 01:50:51 -0000</pubDate><guid>https://sourceforge.net488a139448311f4cfb2f8918709b04b8e02ebeed</guid></item><item><title>WikiPage round-trip-sample modified by Harry Gardner</title><link>https://sourceforge.net/p/dal4j/wiki/round-trip-sample/</link><description>&lt;pre&gt;--- v6
+++ v7
@@ -120,6 +120,7 @@
               &lt;columnProperty&gt;
                 &lt;columnName&gt;user_created_date&lt;/columnName&gt;
                 &lt;!-- Annotations added to the userCreatedDate attribute --&gt;
+                &lt;!-- NOTE: Only available with SimplePojoCodeGenerator --&gt;
                 &lt;injectFieldAnnotations&gt;
                    @DateTimeFormat(pattern= "y-M-d")
                 &lt;/injectFieldAnnotations&gt;
@@ -130,6 +131,7 @@
               &lt;/columnProperty&gt;
               &lt;columnProperty&gt;
                 &lt;columnName&gt;user_updated_date&lt;/columnName&gt;
+                &lt;!-- NOTE: Only available with SimplePojoCodeGenerator --&gt;
                 &lt;injectFieldAnnotations&gt;
                    @DateTimeFormat(pattern= "y-M-d")
                 &lt;/injectFieldAnnotations&gt;
@@ -164,6 +166,7 @@
                 &lt;!-- Identifies column to be customized --&gt;
                 &lt;columnName&gt;user_created_date&lt;/columnName&gt;
                 &lt;!-- Annotations added to the userCreatedDate attribute --&gt;
+                &lt;!-- NOTE: Only available with SimplePojoCodeGenerator --&gt;
                 &lt;injectFieldAnnotations&gt;
                    @DateTimeFormat(pattern= "y-M-d")
                 &lt;/injectFieldAnnotations&gt;
@@ -174,6 +177,7 @@
               &lt;/columnProperty&gt;
               &lt;columnProperty&gt;
                 &lt;columnName&gt;user_updated_date&lt;/columnName&gt;
+                &lt;!-- NOTE: Only available with SimplePojoCodeGenerator --&gt;
                 &lt;injectFieldAnnotations&gt;
                    @DateTimeFormat(pattern= "y-M-d")
                 &lt;/injectFieldAnnotations&gt;
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Harry Gardner</dc:creator><pubDate>Tue, 12 Jun 2012 01:49:04 -0000</pubDate><guid>https://sourceforge.neta8f0c37650706cc43e682213ac980759c063f0b5</guid></item><item><title>WikiPage round-trip-sample modified by Harry Gardner</title><link>https://sourceforge.net/p/dal4j/wiki/round-trip-sample/</link><description>&lt;pre&gt;--- v5
+++ v6
@@ -122,7 +122,7 @@
                 &lt;!-- Annotations added to the userCreatedDate attribute --&gt;
                 &lt;injectFieldAnnotations&gt;
                    @DateTimeFormat(pattern= "y-M-d")
-                &lt;/&lt;injectFieldAnnotations&gt;
+                &lt;/injectFieldAnnotations&gt;
                 &lt;!-- Annotations added to the getUserCreatedDate method --&gt;
                 &lt;injectGetMethodAnnotations&gt;
                    @DateTimeFormat(pattern= "y-M-d")
@@ -166,7 +166,7 @@
                 &lt;!-- Annotations added to the userCreatedDate attribute --&gt;
                 &lt;injectFieldAnnotations&gt;
                    @DateTimeFormat(pattern= "y-M-d")
-                &lt;/&lt;injectFieldAnnotations&gt;
+                &lt;/injectFieldAnnotations&gt;
                 &lt;!-- Annotations added to the getUserCreatedDate method --&gt;
                 &lt;injectGetMethodAnnotations&gt;
                    @DateTimeFormat(pattern= "y-M-d")
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Harry Gardner</dc:creator><pubDate>Tue, 12 Jun 2012 01:41:04 -0000</pubDate><guid>https://sourceforge.netbbb5f1e8180ad275591f6b650e9e71d53a2bafef</guid></item><item><title>WikiPage round-trip-sample modified by Harry Gardner</title><link>https://sourceforge.net/p/dal4j/wiki/round-trip-sample/</link><description>&lt;pre&gt;--- v4
+++ v5
@@ -100,7 +100,7 @@
 &lt;b&gt;$table_name -&lt;/b&gt; The name of the DB table used to generated the entity, lower case.
 &lt;b&gt;$TABLE_NAME -&lt;/b&gt; The name of the DB table used to generated the entity, upper case.
 
-&lt;b&gt;Class imports, class and field annotations, and code injection&lt;/b&gt;
+&lt;b&gt;Class imports, class field, get method annotations, as well as code injection&lt;/b&gt;
 The following describes how to apply imports, class level annotations, and custom code to a specific entity derived from either a table or a view.
 
     &lt;relationships&gt;
@@ -119,15 +119,20 @@
             &lt;columnProperties&gt;
               &lt;columnProperty&gt;
                 &lt;columnName&gt;user_created_date&lt;/columnName&gt;
-                &lt;injectAnnotations&gt;
-                  @DateTimeFormat(pattern= "y-M-d")
-                &lt;/injectAnnotations&gt;
+                &lt;!-- Annotations added to the userCreatedDate attribute --&gt;
+                &lt;injectFieldAnnotations&gt;
+                   @DateTimeFormat(pattern= "y-M-d")
+                &lt;/&lt;injectFieldAnnotations&gt;
+                &lt;!-- Annotations added to the getUserCreatedDate method --&gt;
+                &lt;injectGetMethodAnnotations&gt;
+                   @DateTimeFormat(pattern= "y-M-d")
+                &lt;/injectGetMethodAnnotations&gt;
               &lt;/columnProperty&gt;
               &lt;columnProperty&gt;
                 &lt;columnName&gt;user_updated_date&lt;/columnName&gt;
-                &lt;injectAnnotations&gt;
+                &lt;injectFieldAnnotations&gt;
                    @DateTimeFormat(pattern= "y-M-d")
-                &lt;/injectAnnotations&gt;
+                &lt;/injectFieldAnnotations&gt;
               &lt;/columnProperty&gt;
             &lt;/columnProperties&gt;
 
@@ -153,19 +158,25 @@
             &lt;classAnnotations&gt;
         @MyClassAnnotation(className="$ClassName", tableName="$TABLE_NAME")
             &lt;/classAnnotations&gt;
-            &lt;!-- Add annotations to the get method for specific fields --&gt;
+            &lt;!-- Add annotations to the attribute or get method for specific fields --&gt;
             &lt;columnProperties&gt;
               &lt;columnProperty&gt;
+                &lt;!-- Identifies column to be customized --&gt;
                 &lt;columnName&gt;user_created_date&lt;/columnName&gt;
-                &lt;injectAnnotations&gt;
-                  @DateTimeFormat(pattern= "y-M-d")
-                &lt;/injectAnnotations&gt;
+                &lt;!-- Annotations added to the userCreatedDate attribute --&gt;
+                &lt;injectFieldAnnotations&gt;
+                   @DateTimeFormat(pattern= "y-M-d")
+                &lt;/&lt;injectFieldAnnotations&gt;
+                &lt;!-- Annotations added to the getUserCreatedDate method --&gt;
+                &lt;injectGetMethodAnnotations&gt;
+                   @DateTimeFormat(pattern= "y-M-d")
+                &lt;/injectGetMethodAnnotations&gt;
               &lt;/columnProperty&gt;
               &lt;columnProperty&gt;
                 &lt;columnName&gt;user_updated_date&lt;/columnName&gt;
-                &lt;injectAnnotations&gt;
+                &lt;injectFieldAnnotations&gt;
                    @DateTimeFormat(pattern= "y-M-d")
-                &lt;/injectAnnotations&gt;
+                &lt;/injectFieldAnnotations&gt;
               &lt;/columnProperty&gt;
             &lt;/columnProperties&gt;
             &lt;injectCode&gt;&lt;![CDATA[
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Harry Gardner</dc:creator><pubDate>Tue, 12 Jun 2012 01:39:37 -0000</pubDate><guid>https://sourceforge.netedcc7dea76240bf6ae252b76838c8c7f364887d0</guid></item></channel></rss>