Skip to content

Instantly share code, notes, and snippets.

@Ultranium
Ultranium / JsonBinaryType.kt
Created August 25, 2022 15:39
UserType implementation for the Vert.x JsonObject class for use with Hibernate Reactive
import io.vertx.core.json.JsonObject
import org.hibernate.engine.spi.SharedSessionContractImplementor
import org.hibernate.usertype.UserType
import java.io.Serializable
import java.sql.PreparedStatement
import java.sql.ResultSet
import java.sql.Types
import java.util.*
/**
META-INF/
META-INF/MANIFEST.MF
com/
com/example/
com/example/App.class
com/example/CustomConfigurationFactory.class
META-INF/org/
META-INF/org/apache/
META-INF/org/apache/logging/
META-INF/org/apache/logging/log4j/