How to set enum value in setParameter hibernate query.
query.setParameter( "keyValue", Enum.valueOf(, KeywordType.specific));
Assuming the enum is KeywordType and you want to pass the specific instance of this enum:
query.setParameter("keyValue", KeywordType.specific);
Just like you would use the enum anywhere else.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With