Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring 使用@Convert按属性筛选条件_Spring_Postgresql_Criteria_Hibernate Criteria - Fatal编程技术网

Spring 使用@Convert按属性筛选条件

Spring 使用@Convert按属性筛选条件,spring,postgresql,criteria,hibernate-criteria,Spring,Postgresql,Criteria,Hibernate Criteria,我有一个带有字符串列表的简单类,该列表在db中通过@Convert转换为一列,现在我正试图基于类型attrbute创建一个条件 @Entity(name = "my_table") public class MyTable implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column @Convert(converter =

我有一个带有字符串列表的简单类,该列表在db中通过@Convert转换为一列,现在我正试图基于类型attrbute创建一个条件

@Entity(name = "my_table")
public class MyTable implements Serializable {
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Long id;

  @Column
  @Convert(converter = StringListConverter.class)
  private List<String> type;
}

*所有条目都有一个值,我使用的是psql db,现在使用Hibernate是不可能的


请查看错误提示:

您找到解决方法了吗?没有:(……)。。。。。。。
org.springframework.orm.jpa.JpaSystemException: Error attempting to apply AttributeConverter; nested exception is javax.persistence.PersistenceException: Error attempting to apply AttributeConverter