codegen - added jpa_sql attributes

master
Niclas Thobaben 2021-09-28 17:15:37 +02:00
parent 1a1b54cf0f
commit e921872e17
1 changed files with 88 additions and 4 deletions

View File

@ -90,6 +90,16 @@
"primitive_mapping": {
"description": "Mapping of apibuilder primitive types to language specific types.",
"fields": [
{
"name": "id",
"type": "uuid"
},
{
"name": "name",
"type": "string",
"required": false,
"description": "An optional label for this primitive type mapping set."
},
{
"name": "boolean_type",
"type": "type_mapping",
@ -150,6 +160,20 @@
"type": "type_mapping",
"required": false
}
],
"attributes": [
{
"name": "jpa_sql",
"value": {
"pkey": "id",
"id_generator": {
"name": "uuid",
"strategy": "org.hibernate.id.UUIDGenerator",
"type": "uuid-char"
},
"repository": "default"
}
}
]
},
"template": {
@ -194,11 +218,41 @@
},
{
"name": "created",
"type": "date-time-iso8601"
"type": "date-time-iso8601",
"attributes": [
{
"name": "jpa_sql",
"value": {
"timestamp": "created"
}
}
]
},
{
"name": "updated",
"type": "date-time-iso8601"
"type": "date-time-iso8601",
"attributes": [
{
"name": "jpa_sql",
"value": {
"timestamp": "update"
}
}
]
}
],
"attributes": [
{
"name": "jpa_sql",
"value": {
"pkey": "id",
"id_generator": {
"name": "uuid",
"strategy": "org.hibernate.id.UUIDGenerator",
"type": "uuid-char"
},
"repository": "default"
}
}
]
},
@ -297,11 +351,41 @@
},
{
"name": "created",
"type": "date-time-iso8601"
"type": "date-time-iso8601",
"attributes": [
{
"name": "jpa_sql",
"value": {
"timestamp": "create"
}
}
]
},
{
"name": "updated",
"type": "date-time-iso8601"
"type": "date-time-iso8601",
"attributes": [
{
"name": "jpa_sql",
"value": {
"timestamp": "update"
}
}
]
}
],
"attributes": [
{
"name": "jpa_sql",
"value": {
"pkey": "id",
"id_generator": {
"name": "uuid",
"strategy": "org.hibernate.id.UUIDGenerator",
"type": "uuid-char"
},
"repository": "pageable"
}
}
]
},