-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
My domain model contains inline classes wrapping UUIDs. I'd like to be able to store these using the native Postgres UUID type, and this is allowed by JPA AttributeConverter class. Unfortunately the processor requires the target type to be either a Long or a String.
private fun converterFunc(name: String, type: TypeName, it: ConverterDefinition, fileSpec: FileSpec.Builder) {
val wrapperName = when (it.targetType.asClassName()) {
STRING -> "stringWrapper"
LONG -> "longWrapper"
else -> throw TypeConverterNotSupportedException(it.targetType)
}
Is there any particular reason for this, and if not would you accept a PR that adds UUID as an option?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels