UNPKG

gen-jhipster

Version:

Spring Boot + Angular/React/Vue in one handy generator

16 lines (15 loc) 772 B
import type { PrimaryKey } from '../../../../lib/types/application/entity.js'; /** * Returns the java value generator for the given primaryKey type */ export declare const getJavaValueGeneratorForType: (type: any) => "UUID.randomUUID().toString()" | "UUID.randomUUID()" | "intCount.incrementAndGet()" | "longCount.incrementAndGet()"; /** * @private * Returns the primary key value based on the primary key type, DB and default value * * @param {string} primaryKey - the primary key type * @param {string} databaseType - the database type * @param {number} defaultValue - default value * @returns {string} java primary key value */ export declare const getPrimaryKeyValue: (primaryKey: PrimaryKey | string, databaseType: string, defaultValue?: number) => string;