HQL IN operator, Array of Enums ClassCastException

后端 未结 2 1145
不思量自难忘°
不思量自难忘° 2021-01-07 11:35

Here is my stripped down class and enum.

class A
{
    @Enumerated (value = EnumType.STRING)
    AType type;
}

enum AType
{
    X,Y
}

if I

相关标签:
2条回答
  • 2021-01-07 12:04
    query.setParameterList("types", types);
                      ^--
    

    This should do it.

    0 讨论(0)
  • 2021-01-07 12:08

    query.setParameterList("types", types);

    0 讨论(0)
提交回复
热议问题