Re: [hibernate-dev] dynamic instantiation queries

2017-02-17 Thread Steve Ebersole
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,

Re: [hibernate-dev] dynamic instantiation queries

2016-10-24 Thread Steve Ebersole
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

Re: [hibernate-dev] dynamic instantiation queries

2016-10-24 Thread Sanne Grinovero
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

Re: [hibernate-dev] dynamic instantiation queries

2016-10-24 Thread andrea boriero
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? >

Re: [hibernate-dev] dynamic instantiation queries

2016-10-24 Thread Steve Ebersole
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? > >> >

Re: [hibernate-dev] dynamic instantiation queries

2016-10-24 Thread Sanne Grinovero
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

Re: [hibernate-dev] dynamic instantiation queries

2016-10-24 Thread Steve Ebersole
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:

Re: [hibernate-dev] dynamic instantiation queries

2016-10-24 Thread Vlad Mihalcea
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

[hibernate-dev] dynamic instantiation queries

2016-10-24 Thread Steve Ebersole
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