" + schema.getOutputName() + " schema");
+ "A class modelling foreign key relationships, indexes, and constraints of tables of the " + schema.getOutputName() + " schema");
printClassAnnotations(out, schema);
if (scala)
@@ -631,99 +635,142 @@ public class JavaGenerator extends AbstractGenerator {
else
out.println("public class Keys {");
- out.tab(1).header("IDENTITY definitions");
- out.println();
-
+ List
- * This type is for JOOQ INTERNAL USE only. Do not reference directly
+ * This type is for JOOQ INTERNAL USE only. Do not reference directly.
*
* @author Lukas Eder
*/
public abstract class AbstractKeys {
/**
- * Factory method for identities
+ * Factory method for indexes.
+ */
+ protected static Index createIndex(String name, Table> table, SortField>[] sortFields, boolean unique) {
+ return new IndexImpl(DSL.name(name), table, sortFields, null, unique);
+ }
+
+ /**
+ * Factory method for identities.
*/
protected static