[seam-commits] Seam SVN: r9613 - trunk/seam-gen/hibernatetools.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Nov 24 12:06:36 EST 2008


Author: dan.j.allen
Date: 2008-11-24 12:06:36 -0500 (Mon, 24 Nov 2008)
New Revision: 9613

Modified:
   trunk/seam-gen/hibernatetools/seam-gen.reveng.xml
Log:
private some samples to help guide a new user to get started with reveng

Modified: trunk/seam-gen/hibernatetools/seam-gen.reveng.xml
===================================================================
--- trunk/seam-gen/hibernatetools/seam-gen.reveng.xml	2008-11-24 14:32:38 UTC (rev 9612)
+++ trunk/seam-gen/hibernatetools/seam-gen.reveng.xml	2008-11-24 17:06:36 UTC (rev 9613)
@@ -2,7 +2,34 @@
 <!DOCTYPE hibernate-reverse-engineering SYSTEM "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >
 <hibernate-reverse-engineering>
 
-  <!-- This file is intentionally generated empty by seam-gen -->
-  <!-- You can add any filtering/setup you want for your app -->
+   <!-- Use this file to customize the generation of JPA entities from database
+	    tables performed either by `seam generate' or the Generate Entities task
+	    in JBoss Tools. You can find detailed instructions on controlling
+	    reverse engineering in the JBoss Tools reference documentation:
+	    http://docs.jboss.org/tools/3.0.0.Beta1/en/hibernatetools/html/index.html
+   -->
 
-</hibernate-reverse-engineering>
\ No newline at end of file
+   <!-- Uncomment the next line if you want to begin by excluding all tables,
+       then selectively including tables -->
+   <!--<table-filter match-name="*.*" exclude="true"/>-->
+
+   <!-- Uncomment one of the next two lines to include or exclude a single table -->
+   <!--<table-filter match-name="TABLE_NAME" exclude="true"/>-->
+   <!--<table-filter match-name="TABLE_NAME" exclude="false"/>-->
+
+   <!-- An example of a mapping customization -->
+   <!--
+   <table name="TABLE_PREFIX_BILL" class="org.example.model.Bill">
+      <meta attribute="class-code">
+// Code appended to the end of the generated class
+public float calculateTotal() {
+    return this.rate * this.hours;
+}
+      </meta/>
+      <column name="BILL_ID" property="id" type="java.lang.Long"/>
+      <column name="RTE" property="rate"/>
+      <column name="HRS" property="hours"/>
+   </table>
+   -->
+
+</hibernate-reverse-engineering>




More information about the seam-commits mailing list