Re: [hibernate-dev] Getting notified when session factory is completely set up

2014-02-13 Thread Gunnar Morling
2014/2/11 Davide D'Alto > > I can "inject" the SF into a DatastoreProvider by having it implement > said StartStoppable contract. But as pointed out before the SF is not yet > completely initialized at this point. So I e.g. can't access the entity > persisters. > > Isn't the SessionFactory alread

Re: [hibernate-dev] [OGM] Public packages of datastore modules

2014-02-13 Thread Gunnar Morling
> > > >> I can work on this today and start to plan the release for Wednesday. > > Hum, tbh. I'm not sure whether I'll be done with the doc updates by > Wednesday. > > > Would next Wednesday be a more suitable date? I would prefer not to > postpone this any further > Yes. I've sent a PR for OGM-39

Re: [hibernate-dev] Fwd: [OGM] Public packages of datastore modules

2014-02-13 Thread Gunnar Morling
I've created https://github.com/hibernate/hibernate-ogm/pull/285 which moves all the types from a dialect module to one parent package per dialect, e.g. org.hibernate.ogm.dialect.mongodb.*. The dialect type, the store identifier type (e.g. MongoDB) and the properties type (if present, e.g. MongDBP

Re: [hibernate-dev] [OGM] When is AssociationKey serialized?

2014-02-13 Thread Sanne Grinovero
On 4 February 2014 12:19, Gunnar Morling wrote: > 2014/2/3 Emmanuel Bernard >> >> >> >> > On 3 févr. 2014, at 15:21, Sanne Grinovero wrote: >> > >> >> On 3 February 2014 13:33, Emmanuel Bernard >> >> wrote: >> >> Hum, with the fact that this object now points to metadata, I wonder if >> >> we s

Re: [hibernate-dev] [OGM] When is AssociationKey serialized?

2014-02-13 Thread Emmanuel Bernard
> >> The thing is only the key/value dialects do make use of the keys objects. > >> And even in that case, it might not make sense to actually reuse these > >> objects. For example if the cache name is the table and only the id columns > >> are part of the key. > >> Is that edge case worth this com

Re: [hibernate-dev] [OGM] When is AssociationKey serialized?

2014-02-13 Thread Gunnar Morling
2014/2/13 Emmanuel Bernard > > >> The thing is only the key/value dialects do make use of the keys > objects. > > >> And even in that case, it might not make sense to actually reuse these > > >> objects. For example if the cache name is the table and only the id > columns > > >> are part of the k

Re: [hibernate-dev] Getting notified when session factory is completely set up

2014-02-13 Thread Emmanuel Bernard
On Tue 2014-02-11 12:26, Gunnar Morling wrote: > 2014/2/11 Davide D'Alto > > > > Yes, that helps indeed. Implementing my validation routine in such an > > observer works. I guess if needed, I even could implement support for the > > suggested service contract in OGM with help of an observer. > >

Re: [hibernate-dev] [OGM] When is AssociationKey serialized?

2014-02-13 Thread Emmanuel Bernard
On Thu 2014-02-13 22:27, Gunnar Morling wrote: > 2014/2/13 Emmanuel Bernard > > > > >> The thing is only the key/value dialects do make use of the keys > > objects. > > > >> And even in that case, it might not make sense to actually reuse these > > > >> objects. For example if the cache name is t