我有下表:
Column | Type | Modifiers
-------------+-------------------+---------------------------------------------------------------
product_id | integer | not null default nextval('products_product_id_seq'::regclass)
name | character varying | not null
description | character varying | not null default ''::character varying
attributes | integer[] | not null
quantity | integer | not null default 0
我的问题是...hibernate 5.0.1.final(随最新的 spring boot 一起提供)是否适用于整数[]类型,或者他们仍然没有取得进展?
我发现了相关问题,但他们是在 3 年前根据 hibernate 4 提出的。也许最新版本中发生了一些变化。
最佳答案
我认为你不能在 Hibernate 5 中使用数组类型,这在新的 Hibernate 中还没有实现,你可以在这里了解这一点:
http://hibernate.org/orm/roadmap/#hibernate-orm-5-0
此链接也应该对您有所帮助,它是关于 Hibernate 5 中的新功能的:
关于java - 最新的 hibernate (5) 是否适用于数组类型?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39538522/