[hibernate-dev] Enum object bound to SQLQuery

Emmanuel Bernard emmanuel at hibernate.org
Mon Feb 16 11:33:44 EST 2015

Do we do any other conversion in SQLQueries from the property type to the SQL type? I don’t think we do.

> On 13 Feb 2015, at 06:15, Gail Badner <gbadner at redhat.com> wrote:
> Should enum objects be converted to the appropriate type when bound to a native query?
> It looks like they are converted properly when bound using a Criteria or HQL Query, but not for a SQLQuery.
> Attached is a patch for EnumTypeTest that shows that it works for Criteria and HQL queries, and fails for SQLQuery.
> Is this a bug?
> Thanks,
> Gail_______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev

More information about the hibernate-dev mailing list