在带有Kotlin和Hibernate的Postgres中使用uuid []类型

时间:2018-10-18 11:06:31

标签: postgresql hibernate kotlin

我对Kotlin和整个JVM世界还很陌生,我正在尝试弄清楚应该如何使用该类型。我试图按照本教程https://medium.com/@sajithvijesekar/spring-jpa-data-with-postgres-array-types-a6cc4be421e2所述实现它,但结果在应用启动时收到了shinyApp( ui = fluidPage( selectizeInput('role', 'Select the Role', choices = c('VP','M','AC','C'),options = list( placeholder = "Please select your Role", onInitialize = I('function() { this.setValue(""); }'))), dateInput('cus', label ='Enter Current role start date',value = "",format = "mm/dd/yy"), dateInput('m', label ='Enter M date',value = "",format = "mm/dd/yy") ), server = function(input, output,session) { observe( if(input$role == 'M' & !is.null(input$role) & !is.null(input$cus)) { updateDateInput(session, "m", value = (input$cus) ) } ) } ) 。我想以这种方式在实体中使用该字段:

No Dialect mapping for JDBC type: 2003

该错误与我在模型中的使用方式有关吗?

1 个答案:

答案 0 :(得分:0)

好的,我知道我做错了。我没有在实体中加入@Column(columnDefinition = "uuid[]")