How to set enum value in setParameter hibernate query.
query.setParameter( "keyValue", Enum.valueOf(, KeywordType.specific));
hibernate
How to set enum value in setParameter hibernate query.
query.setParameter( "keyValue", Enum.valueOf(, KeywordType.specific));
Best Answer
Assuming the enum is
KeywordType
and you want to pass thespecific
instance of this enum:Just like you would use the enum anywhere else.