import { javaMainPackageTemplatesBlock } from '../server/support/index.js';
export const entityFiles = {
    server: [
        {
            ...javaMainPackageTemplatesBlock('_entityPackage_'),
            templates: ['repository/_entityClass_Repository.java', 'domain/_persistClass_.java.jhi.spring_data_neo4j'],
        },
    ],
};
export function cleanupEntitiesTask() { }
export default async function writeEntitiesTask({ application, entities }) {
    for (const entity of entities.filter(entity => !entity.builtIn && !entity.skipServer)) {
        await this.writeFiles({
            sections: entityFiles,
            context: { ...application, ...entity },
        });
    }
}
