OK, so this is expected. Thanks! Gail ----- Original Message ----- > From: "Steve Ebersole" <st...@hibernate.org> > To: "Emmanuel Bernard" <emman...@hibernate.org> > Cc: "Gail Badner" <gbad...@redhat.com>, "Hibernate Dev" > <hibernate-dev@lists.jboss.org> > Sent: Monday, February 16, 2015 11:55:54 AM > Subject: Re: [hibernate-dev] Enum object bound to SQLQuery > > Probably the difference is the idea of "auto determination" of a > parameter's "expected" Type. In HQL/JPQL and Criteria queries I have a lot > of code in place to determine the expected type of a parameter based any > "corresponding property reference". In native SQL queries there is no such > opportunity to perform this "auto determination". > > On Mon, Feb 16, 2015 at 10:33 AM, Emmanuel Bernard <emman...@hibernate.org> > wrote: > > > 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 <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 > > >
_______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev