diff --git a/generators/base-application/support/prepare-field.ts b/generators/base-application/support/prepare-field.ts index 73ac82cab45a..82005f32c9a7 100644 --- a/generators/base-application/support/prepare-field.ts +++ b/generators/base-application/support/prepare-field.ts @@ -24,7 +24,7 @@ import { mutateData } from '../../../lib/utils/object.js'; import type CoreGenerator from '../../base-core/generator.js'; import type { Field } from '../../../lib/types/application/field.js'; import type { Entity } from '../../../lib/types/application/entity.js'; -import { fieldTypeValues, getBlobContentType, isFieldBlobType, isFieldEnumType } from '../../../lib/application/field-types.js'; +import { fieldTypeValues, isFieldEnumType } from '../../../lib/application/field-types.js'; import { prepareProperty } from './prepare-property.js'; const { BlobTypes, CommonDBTypes, RelationalOnlyDBTypes } = fieldTypes; @@ -271,11 +271,6 @@ export default function prepareField(entityWithConfig, field, generator) { } function prepareCommonFieldForTemplates(entityWithConfig: Entity, field: Field, generator) { - if (isFieldBlobType(field)) { - field.fieldTypeBlobContent = getBlobContentType(field.fieldType); - field.fieldType = 'byte[]' as any; - } - mutateData(field, { __override__: false, path: [field.fieldName], diff --git a/generators/server/generator.ts b/generators/server/generator.ts index e45daf6ac75f..975acba28e95 100644 --- a/generators/server/generator.ts +++ b/generators/server/generator.ts @@ -341,9 +341,6 @@ export default class JHipsterServerGenerator extends BaseApplicationGenerator { if (field.fieldType === 'DateTime' || field.fieldType === 'Date') { field.fieldType = INSTANT; } - if (field.fieldType === BYTES && databaseType === CASSANDRA) { - field.fieldType = BYTE_BUFFER; - } this._validateField(entityName, field);