You  have to be careful with this and make sure the conversation property type has the enumerated (@Enumerated(EnumType.STRING)) expression on it. Otherwise you will be comparing two strings without an equals method. Assuming you wanted "BULK" to be part of an conversation type Enum which I'm pretty sure what you where heading for.