Re: [hibernate-dev] HHH-11791

2017-06-13 Thread Sanne Grinovero
On 13 June 2017 at 09:06, Gunnar Morling wrote: > 2017-06-13 7:54 GMT+02:00 Christian Beikov : >> Hi, >> >> this might work for a limited set of use cases, but what exactly are you >> expecting from that approach? Performance might be a bit better, but >> that's probably negligible. Apart from tha

Re: [hibernate-dev] HHH-11791

2017-06-13 Thread Gunnar Morling
2017-06-13 7:54 GMT+02:00 Christian Beikov : > Hi, > > this might work for a limited set of use cases, but what exactly are you > expecting from that approach? Performance might be a bit better, but > that's probably negligible. Apart from that, I only see "encapsulation" > or "ease of use with oth

Re: [hibernate-dev] HHH-11791

2017-06-12 Thread Christian Beikov
Hi, this might work for a limited set of use cases, but what exactly are you expecting from that approach? Performance might be a bit better, but that's probably negligible. Apart from that, I only see "encapsulation" or "ease of use with other languages" being your argument. Is that correct,

Re: [hibernate-dev] HHH-11791

2017-06-12 Thread Christian Bongiorno
To work, yes. This would be an optional means of injecting. I was thinking some code like this (very very rough): public void prep(DataSource source) throws SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException { ResultSet resultSet =

Re: [hibernate-dev] HHH-11791

2017-06-12 Thread Vlad Mihalcea
Hi, Wouldn't that require all entities be compiled with? javac -parameters Vlad On Mon, Jun 12, 2017 at 10:19 PM, Christian Bongiorno < christian.bongio...@gmail.com> wrote: > Now that java 8 supports named parameters it becomes possible (potentially > preferrable) to use constructor injection