[#1449] Generate some meaningful Javadoc into the generated

[schema-name]Factory classes
This commit is contained in:
Lukas Eder 2012-05-25 14:34:11 +02:00
parent 240117b7d4
commit 2dc7d8856d
2 changed files with 9 additions and 2 deletions

View File

@ -207,7 +207,12 @@ public class DefaultGenerator extends AbstractGenerator {
outF = new GenerationWriter(strategy.getFile(schema, Mode.FACTORY));
printHeader(outF, schema);
printClassJavadoc(outF, schema);
printClassJavadoc(outF,
"A Factory for specific use with the <code>" + schema.getOutputName() +
"</code> schema.<p>This Factory will not render the <code>" + schema.getOutputName() +
"</code> schema's schema name in rendered SQL (assuming that you use it as the default schema on your connection!). Use the more generic {@link " +
database.getDialect().getFactory().getName() +
"} or the {@link " + Factory.class.getName() + "} instead, if you want to fully qualify tables, routines, etc.");
outF.print("public class ");
outF.print(strategy.getJavaClassName(schema, Mode.FACTORY));

View File

@ -5,10 +5,12 @@ package org.jooq.test.h2.generatedclasses;
/**
* This class is generated by jOOQ.
*
* A Factory for specific use with the <code>PUBLIC</code> schema.<p>This Factory will not render the <code>PUBLIC</code> schema's schema name in rendered SQL (assuming that you use it as the default schema on your connection!). Use the more generic {@link org.jooq.util.h2.H2Factory} or the {@link org.jooq.impl.Factory} instead, if you want to fully qualify tables, routines, etc.
*/
public class PublicFactory extends org.jooq.util.h2.H2Factory {
private static final long serialVersionUID = -1105638453;
private static final long serialVersionUID = -904520167;
/**
* Create a factory with a connection