le ctors)
> >> >
> >> > (2) would be awesome I think. We'd still have to know how to handle
> >> > cases
> >> > where the "DTO" defined ctors matching both cases and which to prefer.
> >> >
> >> >
> >> > On Mon,
gt; > behavior
> >> > 2) attempt to dynamically infer what to do (looks at available ctors)
> >> >
> >> > (2) would be awesome I think. We'd still have to know how to handle
> >> > cases
> >> > where the "DTO" defined ctors matching both c
to do (looks at available ctors)
>> >
>> > (2) would be awesome I think. We'd still have to know how to handle
>> > cases
>> > where the "DTO" defined ctors matching both cases and which to prefer.
>> >
>> >
>> > On
o prefer.
> > >
> > >
> > > On Mon, Oct 24, 2016 at 2:31 PM Vlad Mihalcea >
> > > wrote:
> > >
> > >> Do you mean we should allow the dynamic instantiation to resolve
> > entities
> > >> when we pass the entity identifier?
>
you mean we should allow the dynamic instantiation to resolve
> entities
> >> when we pass the entity identifier?
> >>
> >> I think I saw this request on StackOverflow once.
> >>
> >> Did I understand the question properly?
> >>
>
Mihalcea
> wrote:
>
>> Do you mean we should allow the dynamic instantiation to resolve entities
>> when we pass the entity identifier?
>>
>> I think I saw this request on StackOverflow once.
>>
>> Did I understand the question properly?
>>
>&g
mic instantiation to resolve entities
> when we pass the entity identifier?
>
> I think I saw this request on StackOverflow once.
>
> Did I understand the question properly?
>
> Vlad
> --
> From: Steve Ebersole
> Sent: 10/24/2016 22:
6 22:21
To: "hibernate-dev"
Subject: [hibernate-dev] dynamic instantiation queries
Historically (well before JPA) HIbernate would handle dynamic instantiation
queries in cases where one of the arguments being an entity-reference by
passing just the entity's identifier rather than a complet
Historically (well before JPA) HIbernate would handle dynamic instantiation
queries in cases where one of the arguments being an entity-reference by
passing just the entity's identifier rather than a complete reference to
the entity. To be clear, I am talking about a query like:
select new DT