org.jooq.codegen.SuffixGeneratorStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of reportcard-jooq-generator Show documentation
Show all versions of reportcard-jooq-generator Show documentation
test report metrics and trend analysis reporting :: reportcard-jooq-generator
package org.jooq.codegen;
import org.jooq.meta.Definition;
@SuppressWarnings("unused")
public class SuffixGeneratorStrategy extends DefaultGeneratorStrategy {
@Override
public String getJavaClassName(final Definition definition, final Mode mode) {
if (mode.equals(Mode.POJO)) {
//Reduce naming ambiguity
return super.getJavaClassName(definition, mode) + "Pojo";
} else if (mode.equals(Mode.DEFAULT)) {
return super.getJavaClassName(definition, mode) + "Table";
}
return super.getJavaClassName(definition, mode);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy