Using an enum with a converter for a PK field gives this exception, as the converter is not honored. An enum value with ordinal value is searched instead. See also https://forum.hibernate.org/viewtopic.php?f=1&t=1030123