I'm running into the same difficulty, with a collection of java.lang.String objects (alternate names for an entity). I noticed that the
first question of the Advanced Problems FAQ recommends either using HQL or submitting a patch.
Since, like the original poster, I would find it very inconvenient to use HQL for program-generated queries, I'd like to work on a patch. I've found the place where the exception is generated, but my DB experience is low enough that I'm having trouble figuring out how to proceed. Would anyone have advice on how to extend the existing code to handle this sort of query, where to look for similar code, or any other helpful comments?
I suppose I could create another entity class, a String with an ID, and make it a collection of those. Seems like a kluge, though, and I'd rather have it work right.