Re: [hibernate-dev] Javassist enhancement problems with the Hibernate ORM WildFly modules

2017-01-13 Thread Sanne Grinovero
I finally have a working solution which allows me to move on with the upgrade of Hibernate Search, yet the solution in the Search testsuite is essentially sweeping the problem "under the carpet". I'm taking it as it allows me to move out of stale-mate (and it's not a Search problem) but opened an

[hibernate-dev] [OGM] Keeping the order of the collection of elements in MongoDB

2017-01-13 Thread Davide D'Alto
Hi, it seems that when using Collection of elements in MongoDB, users expect to have the elements in the same order as in the db. You can see the question on the forum here: https://forum.hibernate.org/viewtopic.php?f=31&t=1043903&p=2491218#p2491218 I also found this StackOverflow question: http:/

Re: [hibernate-dev] [OGM] Keeping the order of the collection of elements in MongoDB

2017-01-13 Thread Sanne Grinovero
I think it's a reasonable expectation, as long as we're talking specifically about mapping a *List* and not just a generic Collection. On 13 January 2017 at 12:18, Davide D'Alto wrote: > Hi, > it seems that when using Collection of elements in MongoDB, users > expect to have the elements in the s

Re: [hibernate-dev] [OGM] Keeping the order of the collection of elements in MongoDB

2017-01-13 Thread Yoann Rodiere
> > I think it's a reasonable expectation, as long as we're talking > specifically about mapping a *List* and not just a generic Collection. > Ah, this topic again :) I know I'll be all lone, but I'll try anyway! If we do it for List, and unless there are technical issues that prevent us from doi

Re: [hibernate-dev] [OGM] Keeping the order of the collection of elements in MongoDB

2017-01-13 Thread Sanne Grinovero
Hi Yoann, while you might be using a specific implementation when persisting your new entities, when you're loading the object back from the database how is Hibernate supposed to know A) which implementation you want it to use B) which order to use, if you didn't map e.g. an order column to stor

Re: [hibernate-dev] [OGM] Keeping the order of the collection of elements in MongoDB

2017-01-13 Thread Davide D'Alto
I've created a JIRA for this https://hibernate.atlassian.net/browse/OGM-1236 Thanks On Fri, Jan 13, 2017 at 2:26 PM, Sanne Grinovero wrote: > Hi Yoann, > > while you might be using a specific implementation when persisting > your new entities, when you're loading the object back from the > datab

Re: [hibernate-dev] [OGM] Keeping the order of the collection of elements in MongoDB

2017-01-13 Thread Yoann Rodiere
Hi Sanne, > while you might be using a specific implementation when persisting > your new entities, when you're loading the object back from the > database how is Hibernate supposed to know > A) which implementation you want it to use Ok, that's true for most collection interfaces, but I'm not

Re: [hibernate-dev] [OGM] Keeping the order of the collection of elements in MongoDB

2017-01-13 Thread Sanne Grinovero
On 13 January 2017 at 15:30, Yoann Rodiere wrote: > Hi Sanne, > >> >> while you might be using a specific implementation when persisting >> your new entities, when you're loading the object back from the >> database how is Hibernate supposed to know >> A) which implementation you want it to use >

Re: [hibernate-dev] [OGM] Keeping the order of the collection of elements in MongoDB

2017-01-13 Thread Yoann Rodiere
> > I'm a bit lost here. If you don't want to expose an "unnecessary > promise" like ordering, why would you need OGM to maintain ordering? As explained below: > You could add documentation on a getter stating what the expected ordering > is (and, frankly, it may be relevant even with a List: ho