Re: [hibernate-dev] Hibernate5 migration

2015-08-12 Thread Koen Serneels
Hi Steve, Let me clarify the first two questions: I’m looking for an entry point/hook in H5 for altering existing class mappings. For example; some of our entities are supposed to be immutable, but only in production mode. When running our tests we are using that same model to setup data

Re: [hibernate-dev] Hibernate5 migration

2015-08-12 Thread Steve Ebersole
There is a migration guide: https://github.com/hibernate/hibernate-orm/blob/master/working-5.0-migration-guide.md. It is still a work in progress as in its is not "prettified" yet (as 5.0 is not final yet. If things are missing please let us know. Some answers inline... - In Hibernate4 we modif

Re: [hibernate-dev] [HSEARCH] Usefulness of index sharing

2015-08-12 Thread Andrej Golovnin
Hi Gunnar, > Should we consider to drop this feature in HS 6? -1, we use it, I think, in at least 3 places in our application. Removing it would make our code more complicated. Best regards, Andrej Golovnin ___ hibernate-dev mailing list hibernate-dev@

[hibernate-dev] Hibernate5 migration

2015-08-12 Thread Koen Serneels
Hi, I'm migrating from Hibernate4 to 5(RC4). While doing so I'm stumbling on some stuff that has been removed or moved. - In Hibernate4 we modified mappings on-the-fly by overriding Spring's LocalSessionFactoryBean#buildSessionFactory. Doing so we could first access the getClassMapping on

Re: [hibernate-dev] [HSEARCH] Usefulness of index sharing

2015-08-12 Thread Sanne Grinovero
That's an interesting proposal, as index sharing inherently implies that fields on different types shall not have conflicting mapping (i.e. don't reuse the same field name for a different type). By default we don't share indexes across unrelated types, but also *by default* subtypes are indexed in

Re: [hibernate-dev] [HSEARCH] Usefulness of index sharing

2015-08-12 Thread Martin Braun
Hi, I guess it's useful in some edge cases where the user wants to search different entities with one query. As long as everything is in the same index scoring is a lot easier (I don't know if it even works otherwise). I guess that could be done by indexing a common supertype, but sometimes that'

[hibernate-dev] [HSEARCH] Usefulness of index sharing

2015-08-12 Thread Gunnar Morling
Hibernate Search aficionados, I am wondering what that's the rationale for offering the feature of index sharing [1]. The ref guide says "there is really not much benefit in sharing indexes". It complicates queries, as an additional filter on the type field must be applied in case of targeting on