added jpa entity generator
parent
7b26d9ced2
commit
95303ae61c
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue