Re: [hibernate-dev] Possibly interesting use of Jandex

2014-03-11 Thread Gunnar Morling
2014-03-11 18:17 GMT+01:00 Sanne Grinovero : > On 11 March 2014 17:08, Gunnar Morling wrote: > > > > > > > > 2014-03-11 17:45 GMT+01:00 Sanne Grinovero : > > > >> On 11 March 2014 10:59, Gunnar Morling wrote: > >> > 2014-03-09 18:31 GMT+01:00 Steve Ebersole : > >> > > >> > @Entity > >> >> interf

Re: [hibernate-dev] Possibly interesting use of Jandex

2014-03-11 Thread Steve Ebersole
There are actually lots of great use cases for pure persistence models. Prototyping, modeling, designing is one as Sanne mentioned. "Dynamic" models is another. You see this is envers, grails, and other places. Also, whether *you* think persistence models should or should not be anemic is fine.

Re: [hibernate-dev] Possibly interesting use of Jandex

2014-03-11 Thread Sanne Grinovero
On 11 March 2014 17:08, Gunnar Morling wrote: > > > > 2014-03-11 17:45 GMT+01:00 Sanne Grinovero : > >> On 11 March 2014 10:59, Gunnar Morling wrote: >> > 2014-03-09 18:31 GMT+01:00 Steve Ebersole : >> > >> > @Entity >> >> interface Employee { >> >> ... >> >> } >> >> >> >> 2) We'd dynamically

Re: [hibernate-dev] Possibly interesting use of Jandex

2014-03-11 Thread Gunnar Morling
2014-03-11 17:45 GMT+01:00 Sanne Grinovero : > On 11 March 2014 10:59, Gunnar Morling wrote: > > 2014-03-09 18:31 GMT+01:00 Steve Ebersole : > > > > @Entity > >> interface Employee { > >> ... > >> } > >> > >> 2) We'd dynamically generate a class to back this. This generated class > >> can co

Re: [hibernate-dev] Possibly interesting use of Jandex

2014-03-11 Thread Sanne Grinovero
On 11 March 2014 10:59, Gunnar Morling wrote: > 2014-03-09 18:31 GMT+01:00 Steve Ebersole : > > @Entity >> interface Employee { >> ... >> } >> >> 2) We'd dynamically generate a class to back this. This generated class >> can contain many of the performance tweaks we've been developing via >>

Re: [hibernate-dev] Possibly interesting use of Jandex

2014-03-11 Thread Steve Ebersole
But you're OK with the following instead? @Entity @Proxy(proxyClass=Employee.class) class EmployeeImpl implements Employee { ... } ? See I find that (^^) less clear and less concise. What's the basis for your gut to say -1? Because it "breaks" from JPA? On Tue, Mar 11, 2014 at 5:37 AM,

Re: [hibernate-dev] Possibly interesting use of Jandex

2014-03-11 Thread Gunnar Morling
2014-03-09 18:31 GMT+01:00 Steve Ebersole : @Entity > interface Employee { > ... > } > > 2) We'd dynamically generate a class to back this. This generated class > can contain many of the performance tweaks we've been developing via > bytecode extensions (inline dirty-checking, "entity entry"

Re: [hibernate-dev] Possibly interesting use of Jandex

2014-03-11 Thread Hardy Ferentschik
On 9 Jan 2014, at 18:31, Steve Ebersole wrote: > Then we had expanded the previous discussion to look at the more general > case... interface based models. Imo, the best way to map the above model > would be: > > @Entity > interface Employee { >... > } > > Yes, this deviates from JPA whic

[hibernate-dev] Possibly interesting use of Jandex

2014-03-09 Thread Steve Ebersole
As I move through the metamodel code, I try to keep an eye on things we want to do eventually and where/how they might fit in the new mapping processing and binding code. One of the changes we are going through is the move to Jandex. Mainly we are using Jandex for its "annotation indexing" capabi