You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by tf...@apache.org on 2012/10/29 22:07:08 UTC

svn commit: r1403528 - /db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/orm-reference/defining-the-schema.xml

Author: tfischer
Date: Mon Oct 29 21:07:07 2012
New Revision: 1403528

URL: http://svn.apache.org/viewvc?rev=1403528&view=rev
Log:
TORQUE-240 document option to retain schema names in java name

Modified:
    db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/orm-reference/defining-the-schema.xml

Modified: db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/orm-reference/defining-the-schema.xml
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/orm-reference/defining-the-schema.xml?rev=1403528&r1=1403527&r2=1403528&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/orm-reference/defining-the-schema.xml (original)
+++ db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/orm-reference/defining-the-schema.xml Mon Oct 29 21:07:07 2012
@@ -368,22 +368,24 @@
     </source>
 
     <p>
-      If the standard naming method is used, the resulting
-      java class will be named Bookstorebook. If you want to omit
-      the schema name in the java name
-      (i.e. the resulting java class should be named "Book"),
+      If the standard options are used, the resulting
+      java class name will ignore the leading database name
+      (e.g. the class will be named Book for the example above). 
+      If you want to retain the schema names in the java names,
+      (i.e. the resulting java class should be named "BookstoreBook"),
       you can either use the javaName attribute of the table definition:
     </p>
 
     <source><![CDATA[
 ...
-<table name="bookstore.book" javaName="Book" description="Book table">
+<table name="bookstore.book" javaName="BookstoreBook" description="Book table">
 ...
 ]]>
     </source>
 
     <p>
-      or TODO describe alternatives
+      or you can set the generation option 
+      <code>torque.om.retainSchemaNamesInJavaName</code> to <code>true</code>.
     </p>
 
     <p>



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org