OK, so this is expected.
Thanks!
Gail
- Original Message -
> From: "Steve Ebersole"
> To: "Emmanuel Bernard"
> Cc: "Gail Badner" , "Hibernate Dev"
>
> Sent: Monday, February 16, 2015 11:55:54 AM
> Subject: Re: [hibernate-dev]
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
opportuni
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 wrote:
>
> Should enum objects be converted to the appropriate type when bound to a
> native query?
>
> It looks like they are converted properly wh
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 att
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 fai