Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
minborg committed May 11, 2016
1 parent 692f553 commit 8181fb3
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -37,7 +37,6 @@
import com.speedment.field.trait.FieldTrait;
import static com.speedment.internal.codegen.model.constant.DefaultAnnotationUsage.OVERRIDE;
import static com.speedment.internal.codegen.model.constant.DefaultType.OBJECT;
import static com.speedment.internal.codegen.model.constant.DefaultType.STRING;
import static com.speedment.internal.codegen.model.constant.DefaultType.VOID;
import com.speedment.internal.codegen.model.value.ReferenceValue;
import com.speedment.internal.core.code.EntityAndManagerTranslator;
Expand Down Expand Up @@ -109,7 +108,7 @@ protected Class makeCodeGenModel(File file) {
.add(generatePrimaryKeyFields(getSupport(), file, () -> table.columns().filter(this::isPrimaryKey)))
.add(generateGetPrimaryKeyClassesField(file))
.add(generateGetPrimaryKeyClasses(file))
.add(newCopyOf(file));
.add(generateNewCopyOf(file));

})
.build()
Expand Down Expand Up @@ -388,7 +387,7 @@ private boolean isPrimaryKey(Column column) {
return column.getParentOrThrow().findPrimaryKeyColumn(column.getName()).isPresent();
}

private Method newCopyOf(File file) {
private Method generateNewCopyOf(File file) {
file.add(Import.of(getSupport().entityImplType()));

final String varName = "source";
Expand Down

0 comments on commit 8181fb3

Please sign in to comment.