How to remove the quotation marks generated by @Column(columnDefinition = "integer[]")
in the SQL creation statement? These quotation marks cause a PostgreSQL error via JDBC: ERROR: type "integer[]" does not exist.
@Entity(name = "table_1")
class MaiChartLite(
@Id
var id: Int,
@Type(IntArrayType::class)
@Column(columnDefinition = "integer[]")
var notes:IntArray,
)
error:
org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "create table "table_1" ("id" integer not null, "notes" "integer[]", primary key ("id"))" via JDBC [ERROR: type "integer[]" does not exist
The correct result should be
create table "table_1" ("id" integer not null, "notes" integer[], primary key ("id"))
==========================================================^ not "integer[]"