You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
Yes, for now we only support Long ang String, having UUID sounds like a resonable idea. Do you have any converter code that transforms your classes into UUIDColumnType?
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.
Is there any particular reason for this, and if not would you accept a PR that adds UUID as an option?
The text was updated successfully, but these errors were encountered: