UNPKG

gen-jhipster

Version:

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

16 lines (15 loc) 766 B
import type { PrimaryKey } from '../../../base-application/types.ts'; /** * Returns the java value generator for the given primaryKey type */ export declare const getJavaValueGeneratorForType: (type: string) => "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;