db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From torque-...@db.apache.org
Subject [DB Torque Wiki] Updated: FrequentlyAskedQuestions
Date Thu, 06 May 2004 18:05:47 GMT
   Date: 2004-05-06T11:05:47
   Editor: 213.78.116.250 <>
   Wiki: DB Torque Wiki
   Page: FrequentlyAskedQuestions
   URL: http://wiki.apache.org/db-torque/FrequentlyAskedQuestions

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -184,11 +184,11 @@
 '''Answer:''' Quick way -> No. And we hope that in the next release there will be a way
for plugging external Name Genrator. But for now you can still change the genrator to fit
your needs. For example I have extended JavaNameGenerator this way:
 
 1) added a single line to interface org.apache.torque.engine.database.model.NameGenerator;
-
-	String CONV_METHOD_UNDERSCORE_IGNORE_DOTS = "underscore_ignore_dots";
-
+{{{
+String CONV_METHOD_UNDERSCORE_IGNORE_DOTS = "underscore_ignore_dots";
+}}}
 2) added a single conversion method to class org.apache.torque.engine.database.model.JavaNameGenerator;
-
+{{{
 	protected String underscoreIgnoreDotsMethod(String schemaName) {
 		schemaName = schemaName.replaceAll("\\.", "_");
 
@@ -201,11 +201,13 @@
 		}
 		return name.toString();
 	}
-3) added a single condition to class org.apache.torque.engine.database.model.JavaNameGenerator;
method:  String generateName(List inputs);
-
+}}}
+3) added a single condition to class org.apache.torque.engine.database.model.JavaNameGenerator;
method: String generateName(List inputs);
+ 
+{{{
 		} else if (CONV_METHOD_UNDERSCORE_IGNORE_DOTS.equals(method)) {
 			javaName = underscoreIgnoreDotsMethod(schemaName);
-
+}}}
 4) rebuilt the torque-generator maven plugin (src/generator$ maven jar:install)
 
 5) now I can use the attribute value in the database tags of my schemas
@@ -296,7 +298,7 @@
 
 -- Tarlika Elisabeth Schmitz
 
-== Why does Torque generate invalid SQL for PostgeSQL BOOL columns? ==
+== Why does Torque generate invalid SQL for PostgreSQL BOOL columns? ==
 
 Torque generates invalid SQL for bool comparisons:
 generated "WHERE xyz=0", but it should be ''WHERE xyz=FALSE'' or "WHERE xyz='0'". 

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


Mime
View raw message