我有一个表客户,该表客户在postgresql中有一个jsonb类型列,我需要在scala中的orm,可以将类声明为以下
class Customer(val demographics: jsonb,
val event: string) {
def this()=this({},"")
}
是否有某些ORM固有的支持,例如我发现Squerl是一个,但我需要明确施放JSONB
我认为您应该尝试支持JSONB的Liquibase。只需使用JSONB作为类型:<column name="demographics" type="jsonb"/>