added jpa entity generator
This commit is contained in:
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 match = LAST_ELEMENT_REGEX.exec(type)
|
||||||
let name = ''
|
let name = ''
|
||||||
|
@ -84,7 +84,7 @@ function mapCollection(type) {
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mapJavaType: (type, namespace, suffix) => {
|
mapJavaType: (type, namespace, suffix='') => {
|
||||||
const baseType = COLLECTION_REGEX.exec(type)[1]
|
const baseType = COLLECTION_REGEX.exec(type)[1]
|
||||||
let javaType = SUPPORTED_TYPES[baseType] || getCustomType(baseType, namespace, suffix)
|
let javaType = SUPPORTED_TYPES[baseType] || getCustomType(baseType, namespace, suffix)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue