As a personal uninformed opinion, I would expect that when setting parameters to a Native Query there would be no transformations.
I'm wondering if there is a (significant) population of users who expect the opposite? (BTW I didn't find the attachment, I think this list drops them.. better to attach them to a JIRA, so you can also use that to document a decision?) Sanne On 13 February 2015 at 05:15, Gail Badner <gbad...@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@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/hibernate-dev _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev