Код: Выделить всё
org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "create table foo (id binary not null, bar jsonb, primary key (id))" via JDBC Statement
Код: Выделить всё
@Entity(name = "foo")
@TypeDef(name = "jsonb", typeClass = JsonBinaryType.class)
public class Foo {
@Id
@GeneratedValue(generator = "UUID")
@GenericGenerator(name = "UUID", strategy = "org.hibernate.id.UUIDGenerator")
private UUID id;
@Type(type = "jsonb")
@Column(columnDefinition = "jsonb")
private Object bar;
}
И моя версия h2 com.h2database:h2:2.0.202.
Если я удалю свойство bar, оно будет работать нормально.
Есть подсказка, пожалуйста?
Подробнее здесь: https://stackoverflow.com/questions/702 ... -hibernate