Hi,
Unfortunately, I am getting no results when searching for a collection of enum types with JPASQL.
In QType:
public final EnumPath<MyEnum> foo = createEnum("my_enum", MyEnum.class);
Query:
new JPASQLQuery(getEntityManager(), new SQLServerTemplates()).from(QType).where(
QType.foo.in(MyEnum.A1, MyEnum.A2)).list(QType.foo);
SQL Server Profiler revealed that enum parameters were passed to the database in a serialized form (0xACE...) instead of enum ordinals. This is why there are no results.
Can you reproduce this issue? If so, what would you suggest?
By the way, I am using Querydsl 2.6.0 and Hibernate 3.2.4.
Best regards,
nyc2