Re: [hibernate-dev] Attribute paths and '.' versus '#' as separator

2014-03-31 Thread Steve Ebersole
So why is #nv (or ::nv) any different than #to (::to) or #hell (::hell)? In other words, if you agree that this or that is delimiter to use for attributes, why is it different at the start of a path versus within a path? `to` is still a method right? `hell` is still a method... On Mon, Mar 31,

Re: [hibernate-dev] Attribute paths and '.' versus '#' as separator

2014-03-31 Thread Gunnar Morling
2014-03-29 17:40 GMT+01:00 Steve Ebersole : > To wrap this up.. > > The most important part for me is being able to identify the point between > the "attribute base" and the "attribute path". If we just use a separate > delimiter there, that's enough for me. Since one of us has a preference > fo

Re: [hibernate-dev] Attribute paths and '.' versus '#' as separator

2014-03-29 Thread Sanne Grinovero
On 29 March 2014 16:40, Steve Ebersole wrote: > To wrap this up.. > > The most important part for me is being able to identify the point between > the "attribute base" and the "attribute path". If we just use a separate > delimiter there, that's enough for me. Since one of us has a preference >

Re: [hibernate-dev] Attribute paths and '.' versus '#' as separator

2014-03-29 Thread Steve Ebersole
To wrap this up.. The most important part for me is being able to identify the point between the "attribute base" and the "attribute path". If we just use a separate delimiter there, that's enough for me. Since one of us has a preference for using dots within the "attribute path" part (and its i

Re: [hibernate-dev] Attribute paths and '.' versus '#' as separator

2014-03-28 Thread Steve Ebersole
What we choose as a separator after the "pivot" is irrelevant to a degree, especially in terms of the compatibility concern. I think you understood that, just being clear. Meaning that calls like: sessionFactoryImplementor.getCollectionPersister( "org.h.SomeEntity.nv.to.hell" ) will fail whethe

Re: [hibernate-dev] Attribute paths and '.' versus '#' as separator

2014-03-28 Thread Emmanuel Bernard
No strong feeling about it. It will break the OGM dialects that make use of the collection role though. So we need to anticipate. To me . looks more like the code being used and is a natural notation even beyond Java. But I get that # offers some additional info. Have you considered? org.h.

Re: [hibernate-dev] Attribute paths and '.' versus '#' as separator

2014-03-28 Thread Steve Ebersole
On Fri, Mar 28, 2014 at 7:06 AM, Hardy Ferentschik wrote: > > On 27 Jan 2014, at 23:54, Steve Ebersole wrote: > > > This is a bit of a potentially insidious one. Not the best way to start > > off a discussion, I know :) > > > > The premise is this... Until now Hibernate has represented attribute

Re: [hibernate-dev] Attribute paths and '.' versus '#' as separator

2014-03-28 Thread Hardy Ferentschik
> Even better, internally I have now Object-ified the notion of path and role: > AttributePath and AttributeRole. +100 ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] Attribute paths and '.' versus '#' as separator

2014-03-28 Thread Hardy Ferentschik
On 27 Jan 2014, at 23:54, Steve Ebersole wrote: > This is a bit of a potentially insidious one. Not the best way to start > off a discussion, I know :) > > The premise is this... Until now Hibernate has represented attribute roles > using dots. For an attribute named 'department' on the com.a