import { javaMainPackageTemplatesBlock, javaTestPackageTemplatesBlock } from './support/index.mjs';
export const entityServerFiles = {
    model: [
        javaMainPackageTemplatesBlock({
            templates: ['_entityPackage_/domain/_persistClass_.java.jhi'],
        }),
    ],
    modelTestFiles: [
        javaTestPackageTemplatesBlock({
            templates: ['_entityPackage_/domain/_persistClass_Test.java'],
        }),
    ],
    server: [
        javaMainPackageTemplatesBlock({
            condition: ctx => ctx.useJakartaValidation,
            templates: ['_entityPackage_/domain/_persistClass_.java.jhi.jakarta_validation'],
        }),
    ],
};
export const enumFiles = {
    enumFiles: [
        javaMainPackageTemplatesBlock({
            renameTo: (data, filepath) => filepath.replace('_enumName_', data.enumName),
            templates: ['_entityPackage_/domain/enumeration/_enumName_.java'],
        }),
    ],
};
