added jpa entity generator

master
Niclas Thobaben 2021-09-18 15:04:20 +02:00
parent 7b26d9ced2
commit 95303ae61c
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ const SUPPORTED_TYPES = {
}
function getCustomType(type, namespace, suffix) {
function getCustomType(type, namespace, suffix='') {
let match = LAST_ELEMENT_REGEX.exec(type)
let name = ''
@ -84,7 +84,7 @@ function mapCollection(type) {
}
module.exports = {
mapJavaType: (type, namespace, suffix) => {
mapJavaType: (type, namespace, suffix='') => {
const baseType = COLLECTION_REGEX.exec(type)[1]
let javaType = SUPPORTED_TYPES[baseType] || getCustomType(baseType, namespace, suffix)