如何使用JPA保留字符串数组

时间:2018-12-03 11:31:20

标签: hibernate jpa spring-data-jpa

如何使用JPA连续存储字符串数组?

即使tat不能正常工作,我也尝试过使用几种开源依赖项,如果您有任何方法可以做到这一点。

1 个答案:

答案 0 :(得分:1)

从jpa检查@Converter。您需要为自定义转换器创建convert和unconvert方法。像这样的http://hantsy.blogspot.com/2013/12/jpa-21-attribute-converter.html?m=1