hooverphonique wrote:
Using a parameter works nicely, and my UserType is fine.. I'm simply trying to point out the fact, that switching from PersistentEnum to UserType breaks queries that uses the enums as constants in the query string, even though the documentation states that doing that sort of thing (even for classes that don't implement PersistentEnum) is supposed to work (Expressions, section 11.8)...
You are right, switch from PesistentEnum to UserType breaks you old HQL queries, but as I remember it is noted somewhere.