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