Re: [hibernate-dev] HSearch Projection queries & multiple fields with same name

2013-01-03 Thread Emmanuel Bernard
I don't think it's as simple as you imply. If we go that route the engine atop Hibernate Search would need to know that a given field is multivaluable (it could be a serialized List otherwise) and look into each entry in the Object[] to "cartesianize it". It's doable but it seems that it would be

Re: [hibernate-dev] Twitter "hibernate_dev" silent

2013-01-03 Thread Emmanuel Bernard
I have done some tests and you are correct. The token / secret seems legit though. I tried to renew them but got a HTTP 500 from GitHub. I have open a support ticket. Emmanuel On Wed 2013-01-02 23:33, Sanne Grinovero wrote: > Hi all, > I noticed that "hibernate_dev" doesn't seem to be tweeting ab

Re: [hibernate-dev] [OGM] Should IN_ENTITY not only be used for OneToMany associations ?

2013-01-02 Thread Emmanuel Bernard
Hello Guillaume and happy new year to you too. You are partly correct. At some point we will want to offer the ability to denormalize the information and copy the data of an entity when it is associated via a to-one association. This will be useful to load associated graphs in one lookup instead o

Re: [hibernate-dev] change default testing property of hibernate.format_sql to true?

2013-01-02 Thread Emmanuel Bernard
You mean for the test suite right? It seems like a good idea. On Fri 2012-12-28 23:17, Strong Liu wrote: > Hi, > > I remember there was some issue on some environment that if we have > hibernate.show_sql enabled during testing, but can we enable this > "hibernate.format_sql" by default? > > usu

Re: [hibernate-dev] [#HHH-4688] Make sure @OrderBy works for @ElementCollection - Hibernate JIRA

2013-01-02 Thread Emmanuel Bernard
In the old code I gave priority to the association information so if the code has not changed, your @Entity is really considered a @Embeddable because of the @ElementCollection (at least for this association). But we should nevertheless fix this test as I consider this practice a user bug more than

Re: [hibernate-dev] [Search] Lazy initialization vs HSearch - Round 4

2012-12-17 Thread Emmanuel Bernard
My initial reaction is if you really need transactional consistency is to do run a transaction commit every n operations. But that may not be ok for your application. We could imagine more or less what you are describing. This is an idea we want to explore to offer consistency between the index

Re: [hibernate-dev] IRC Logs

2012-12-17 Thread Emmanuel Bernard
It's back up. On 14 déc. 2012, at 19:34, Gunnar Morling wrote: > Hi, > > Emmanuel said he wanted to contact Max, not sure what came out of this. > > --Gunnar > Am 14.12.2012 18:56 schrieb "Steve Ebersole" : > >> Nope, but I'll look into it. >> >> On Fri 14 Dec 2012 10:53:27 AM CST, Gunnar M

Re: [hibernate-dev] ORM, OGM and timing

2012-12-06 Thread Emmanuel Bernard
> >>irc. The discussion here was changing the standard QueryTranslatorFactory > >>to use this new Antlr parser. > >> > >>On Dec 5, 2012 8:46 AM, "Sanne Grinovero" wrote: > >>> > >>>Do we need Hibernate 5 to resolve those type sys

Re: [hibernate-dev] ORM, OGM and timing

2012-12-04 Thread Emmanuel Bernard
e it's not been decided that the parser change will even go into > 5.0... > On Dec 4, 2012 11:35 AM, "Emmanuel Bernard" wrote: > > > Hey guys, > > > > Steve and I started a discussion on how to reuse Sanne's work around the > > new JP-QL parser.

Re: [hibernate-dev] The problem of cascading database reads

2012-11-23 Thread Emmanuel Bernard
Thanks Mark for this feedback. That's a very long multi-proposal email :) We probably should try and split it into several elements. Let me continue in line. On Thu 2012-11-22 20:10, Marc Schipperheyn wrote: > Network > @OneToMany > @IndexedEmbedded(includePaths={"id"}) > List users; > > When a

Re: [hibernate-dev] Documentation on OGM + JBoss AS

2012-11-14 Thread Emmanuel Bernard
t; > Something else? > > On 11/13/2012 09:20 AM, Emmanuel Bernard wrote: > >If you remove the place holder it will fail as well. Earlier actually, > >so no. > >On Tue 2012-11-13 8:20, Scott Marlow wrote: > >>Let me know if you want me to try changing the OGM

[hibernate-dev] Some HQL->SLQ optimizations missing?

2012-11-13 Thread Emmanuel Bernard
At Devoxx some guys are selling a product that compiles some flavor of OQL into SQL and have optimized the case of deep hierarchies mapped as table per subclass (AFAIR). In some case it has quite dramatic effects. They happened to have miscoded their HQL query by using inner joins instead of left

Re: [hibernate-dev] Documentation on OGM + JBoss AS

2012-11-13 Thread Emmanuel Bernard
/master/.openshift/config/modules/org/hibernate/ogm/module.xml > >which duplicates some other AS modules jars in the OGM module. That is > >going to be specific to which version of AS is being targeted (IMO) and > >not something I recommend that we depend on. > > > >On 11/

Re: [hibernate-dev] Documentation on OGM + JBoss AS

2012-11-12 Thread Emmanuel Bernard
mes didn't show for ogm/orm. > > > >I'll try again with the demo app. > > > >Scott > > > > > >Sent from my tardis > > > > > >-Original Message- > >From: Sanne Grinovero [sa...@hibernate.org] > >Received: Saturday

Re: [hibernate-dev] Documentation on OGM + JBoss AS

2012-11-09 Thread Emmanuel Bernard
On Fri 2012-11-09 11:15, Scott Marlow wrote: > On 10/01/2012 11:12 AM, Emmanuel Bernard wrote: > >On Mon 2012-10-01 10:51, Scott Marlow wrote: > >>I got further yesterday (after removing the > >>---PlaceHolderDSForOGM--- property from HibernateOgmPersistence). >

Re: [hibernate-dev] [OGM] Tests error on the master branch

2012-11-05 Thread Emmanuel Bernard
There is something fishy with your settings. I've just ran the tests on master and it passes MongoDB too in 30s. There could be some corrupt Maven caching that makes you point to the wrong snapshot. Or you are not on master. I did fix the compilation error in a recent commit. Emmanuel On Fri 201

Re: [hibernate-dev] [HV] master does not compile for me

2012-10-31 Thread Emmanuel Bernard
That was me screwing up. Forget it. Sorry about that Emmanuel On Wed 2012-10-31 16:53, Emmanuel Bernard wrote: > [ERROR] COMPILATION ERROR : > [INFO] - > [ERROR] > /Users/manu/projects/notbackedup/git/validator/engine/s

[hibernate-dev] [HV] master does not compile for me

2012-10-31 Thread Emmanuel Bernard
[ERROR] COMPILATION ERROR : [INFO] - [ERROR] /Users/manu/projects/notbackedup/git/validator/engine/src/test/java/org/hibernate/validator/test/constraints/path/CustomViolationTest.java:[3,47] error: Interval is not public in org.hibernat

Re: [hibernate-dev] New feature: Configuring “hibernate.hbm2ddl.auto” at entity level?

2012-10-23 Thread Emmanuel Bernard
Hi Julien, We don't have any specific plan but that looks like a nice feature to start contributing. It's fairly focused. The only hard part is that you will probably need to involve the metamodel which is being changed between 4.x and 5. Emmanuel On Mon 2012-10-22 13:57, Julien Martin wrote: >

Re: [hibernate-dev] [hibernate-announce] The latest Hibernate Search beta v. 4.2.0.Beta2 is available!

2012-10-18 Thread Emmanuel Bernard
On Thu 2012-10-18 17:35, Sanne Grinovero wrote: > Hello All, > the new amazing Hibernate Search beta v. 4.2.0.Beta2 is available, and Unlike The amazing Spiderman, we have not rebooted the franchise though ;) ___ hibernate-dev mailing list hibernate-dev@

Re: [hibernate-dev] [HSearch] ServiceManager and services

2012-10-15 Thread Emmanuel Bernard
On Mon 2012-10-15 18:19, Hardy Ferentschik wrote: > > Basically for you a Service must allow for multiple implementations > > and a ServiceManager must offer a way to switch between various > > implementations. > > I orientate myself in this case at the ServiceLoader docs (especially since > we a

Re: [hibernate-dev] [HSearch] ServiceManager and services

2012-10-12 Thread Emmanuel Bernard
On Fri 2012-10-12 15:13, Hardy Ferentschik wrote: > > On 12 Jan 2012, at 3:00 PM, Steve Ebersole wrote: > > > "Java services api" == ServiceLoader I assume? > > correct > > > Going on that assumption: > > > > No. ServiceLoader is just a discovery mechanism. There still needs to be > > some

Re: [hibernate-dev] [HSearch] ServiceManager and services

2012-10-12 Thread Emmanuel Bernard
On Fri 2012-10-12 14:03, Sanne Grinovero wrote: > What you say makes sense, but why to we have an > JavaSerializationSerializationProvider then? > It's an alternative implementation which is not using Avro. > > AFAIK there currently is no way to select that one, hence the TODO I > had added recent

Re: [hibernate-dev] [HSearch] ServiceManager and services

2012-10-12 Thread Emmanuel Bernard
On Fri 2012-10-12 14:23, Hardy Ferentschik wrote: > Hi, > > as part of my investigations for HSEARCH-1025 and HSEARCH-1026 I had a look > at how services are implemented in Search. > I thought I could make the statistics collector also a service. Looking at > the code I am a little confused thou

Re: [hibernate-dev] Hibernate Search Spatial: Units?

2012-10-10 Thread Emmanuel Bernard
> > onCoordinates(String... names) Does `onCoordinates()` means all coordinates or simply the default one. If all, then existing queries will break if you add an new coordinate property to an entity. Also, I'm not sure there is a use case for targeting in the same query, the various coordinates

Re: [hibernate-dev] Bytecode enhancement

2012-10-10 Thread Emmanuel Bernard
On Wed 2012-10-10 9:26, Emmanuel Bernard wrote: > Would using a service that store cache data structures by session work? I am > thinking out loud here trying to push the cache idea before discarding it. > That would require a weak-key concurrent map. The one I know is the one Jason &

Re: [hibernate-dev] Hibernate Search Spatial: Units?

2012-10-10 Thread Emmanuel Bernard
.ofLatitude( centerLatitude ) >.andLongitude( centerLongitude ) >.createQuery(); > > when building a spatial query on a class with a @Spatial that does not have a > name attribute set and thus using the default value of class.getName() > > Niko > > > 2012/10/10 Emman

Re: [hibernate-dev] Bytecode enhancement

2012-10-10 Thread Emmanuel Bernard
code enhancement. What is it? > > On Tue 09 Oct 2012 12:28:33 PM CDT, Emmanuel Bernard wrote: >> If you have both the bytecode enhancement and the cache logic I am >> talking about the code would look like this. >> >> public EntityEntry getEntityEntry(Object entity) {

Re: [hibernate-dev] Hibernate Search Spatial: Units?

2012-10-10 Thread Emmanuel Bernard
I almost think that org.hibernate.search.spatial.SpatialQueryBuilder should be an internal class. Do we want to offer direct access to these instead of the dsl? The answer could be yes, but I'd like to see a use case. On 9 oct. 2012, at 18:45, Sanne Grinovero wrote: > Hi Nicolas, > > In the

Re: [hibernate-dev] Bytecode enhancement

2012-10-09 Thread Emmanuel Bernard
return ( (Enhanced) entity ).getEntityEntry(); >} >else { >// this is what hotspots >return entityEntries.get( entity ); > } > } > > On Tue 09 Oct 2012 11:08:42 AM CDT, Emmanuel Bernard wrote: > >On Tue 2012-10-09 10:30, Steve Ebersole wrote: >

Re: [hibernate-dev] Bytecode enhancement

2012-10-09 Thread Emmanuel Bernard
On Tue 2012-10-09 10:30, Steve Ebersole wrote: > On Tue 09 Oct 2012 09:57:12 AM CDT, Emmanuel Bernard wrote: > >On Thu 2012-10-04 10:00, Steve Ebersole wrote: > >>See https://hibernate.onjira.com/browse/HHH-7667 > >> > >>I want to investigate expand

Re: [hibernate-dev] Bytecode enhancement

2012-10-09 Thread Emmanuel Bernard
On Thu 2012-10-04 10:00, Steve Ebersole wrote: > See https://hibernate.onjira.com/browse/HHH-7667 > > I want to investigate expanding Hibernate's support for bytecode > enhancement. I can see 3 main fronts to this: > > 1) offloading map lookups from the PersistenceContext . Currently we > kee

Re: [hibernate-dev] hibernate-commons-annotations dependencies

2012-10-08 Thread Emmanuel Bernard
The easiest solution is to align both dependencies and release a new version of Hibernate Commons Annotations to fix the issue. Emmanuel On Mon 2012-10-08 14:49, Guillaume Smet wrote: > Hi, > > I don't know what is your policy about the dependency management but, > currently, when you include hi

Re: [hibernate-dev] OGM: question/issue with updateTuple() and embeddable objects with custom column name

2012-10-08 Thread Emmanuel Bernard
I'm not sure it's a bug but that is definitely is worth a few thoughts. The way we implement embeddable names using the dot strategy is via a custom naming strategy. But when you use an explicit column name, we simply discard that and pass the real column name. We probably can improve the naming s

Re: [hibernate-dev] Accessing annotation properties values

2012-10-05 Thread Emmanuel Bernard
Because the set of annotations is well defined, I won't if you could use an actual real implementation instead of a proxy. That's mor work but this will be much faster as we would not need to build the proxy. Alternatively, I wonder if we could cache the serialized proxy somewhere or even build

Re: [hibernate-dev] Documentation on OGM + JBoss AS

2012-10-05 Thread Emmanuel Bernard
t;>>>>> Map integrationProperties) call. Sometimes, the persistence providers >>>>>> include enough version specific application server integration code, so >>>>>> that >>>>>> app servers find that its good enough to just call t

[hibernate-dev] First Beta of Hibernate OGM with Infinispan, Ehcache and MongoDB support

2012-10-03 Thread Emmanuel Bernard
I am very happy to finally get this release out. We have kept it close to our chest for too long. In a few keywords: better infinispan support, mongodb support, ehcache support, performance and the foundation for our query support. For people unfamiliar with Hibernate OGM, this is our Hibernate ex

Re: [hibernate-dev] Documentation on OGM + JBoss AS

2012-10-01 Thread Emmanuel Bernard
On Mon 2012-10-01 10:51, Scott Marlow wrote: > I got further yesterday (after removing the > ---PlaceHolderDSForOGM--- property from HibernateOgmPersistence). > Not sure what the long term change is (perhaps we should only add > the ---PlaceHolderDSForOGM--- for the non-container case). That may h

[hibernate-dev] [OGM] Forgot pull request for 4169be6fe0fbb0993fa7c4388469b54732c582bb

2012-09-28 Thread Emmanuel Bernard
Too early in the morning, I forgot to send a pull request for the change in commit 4169be6fe0fbb0993fa7c4388469b54732c582bb. A quick post mortem review might be useful. Emmanuel ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.j

Re: [hibernate-dev] Documentation on OGM + JBoss AS

2012-09-27 Thread Emmanuel Bernard
I'd still prefer a small section in our reference documentation. Stuff in the wiki is as useful as peeing in a violin as we say in France ;) Emmanuel On Thu 2012-09-27 9:52, Scott Marlow wrote: > On 09/27/2012 09:02 AM, Emmanuel Bernard wrote: > >Hey Scott, > > >

[hibernate-dev] Documentation on OGM + JBoss AS

2012-09-27 Thread Emmanuel Bernard
Hey Scott, I stumbled upon https://hibernate.onjira.com/browse/OGM-117 and wondered if you could contribute a paragraph or two on how to use Hibernate OGM in JBoss AS latest. The documentation is hosted in http://github.com/hibernate/hibernate-ogm, there is a documentation module. If you can make

Re: [hibernate-dev] Why do Services need to be Serializable?

2012-09-26 Thread Emmanuel Bernard
On Wed 2012-09-26 13:24, Sanne Grinovero wrote: > I just found this comment on org.hibernate.service.Service: > > /** > * Marker interface for services. > * > * NOTE : All services must be {@link Serializable}! > * > * @author Steve Ebersole > */ > public interface Service extends Serializa

Re: [hibernate-dev] [OGM] @JoinColumns, @EmbeddedId & IN_ENTITY mode

2012-09-25 Thread Emmanuel Bernard
Hey Guillaume, I think I have properly fixed the issue. Can you test and review the pull request https://github.com/hibernate/hibernate-ogm/pull/141 ? Sanne it would be useful for you to check it out too. Emmanuel On Tue 2012-09-25 9:58, Emmanuel Bernard wrote: > Let me investigate this furt

Re: [hibernate-dev] [OGM] @JoinColumns, @EmbeddedId & IN_ENTITY mode

2012-09-25 Thread Emmanuel Bernard
Let me investigate this further first. Ideally the engine would use the right column names ie the fk and not the ones from the entity ids. I must have messed up when I fixed the bug I discussed with you. On 24 sept. 2012, at 20:20, Guillaume SCHEIBEL wrote: > Hi guys, > > I'm working on OGM

Re: [hibernate-dev] OGM-229 Beef up MongoDB documentation

2012-09-24 Thread Emmanuel Bernard
Many thanks Guillaume, I am reviewing them and rephrasing here and there. It looks good so far. I'll probably integrate it in a few hours and we can improve from this base. Emmanuel On Sun 2012-09-23 21:46, Guillaume SCHEIBEL wrote: > Hi guys, > > I've just updated the documentation with the ass

[hibernate-dev] [OGM] Rethinking of naming around the map datastore

2012-09-14 Thread Emmanuel Bernard
The Map datastore provider is named MapBasedDatastoreProvider and his short cut is mapbased. To me it looks weird to use the suffix based. We don't use InfinispanBasedDatastoreProvider for example. I'm inclined to: - rename MapBasedDatastoreProvider to MapDatastoreProvider - rename mapbased to m

Re: [hibernate-dev] Regression after upgrade to 4.1.7.Final

2012-09-10 Thread Emmanuel Bernard
That does not look good. Can you open an issue so we at least track the problem? Emmanuel On Lun 2012-09-10 10:28, Guillaume Smet wrote: > Hi, > > We just upgraded to Hibernate 4.1.7.Final (from 4.1.6.Final) and we > have a pretty bad regression with 4.1.7 and Hibernate Search 4.1.1. > > We hav

Re: [hibernate-dev] Search: paging over deleted entries [ISPN-2206]

2012-08-30 Thread Emmanuel Bernard
Let's split the problem in two ## Infinispan In the ORM case we do filter null results. The logic is in `QueryLoader.executeLoader` and more precisely `ObjectLoaderHelper.returnAlreadyLoadedObjectsInCorrectOrder`. So it looks like a mistake of the Infinipsan Query module to not reproduce this b

Re: [hibernate-dev] org.hibernate.engine.jdbc.dialect.spi.DialectResolver

2012-08-30 Thread Emmanuel Bernard
I imagine the DB name + version will be provided by the user somehow. We could also have Hibernate build a DatabaseMetadata implementation returning the data provided by the user. That would avoid changing the contract. The main drawback is that DatabaseMetadata has many more methods we would not

Re: [hibernate-dev] Hibernate Search documentation build problem

2012-08-23 Thread Emmanuel Bernard
Nicolas, we have opened https://hibernate.onjira.com/browse/HSEARCH-1183 if you could run mvn -v and paste your output in the issue that would help. Emmanuel On 23 août 2012, at 12:30, Nicolas Helleringer wrote: > Hi all, > > I have problem with the documentation build of Hibernate Search : >

Re: [hibernate-dev] JPA callback listeners and CDI

2012-08-23 Thread Emmanuel Bernard
tory, > similar to what we've been discussing for BV constraint validators. > > WDYT? > > --Gunnar > > Am 23.08.2012 17:11 schrieb "Emmanuel Bernard" : ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] JPA callback listeners and CDI

2012-08-23 Thread Emmanuel Bernard
On 20 août 2012, at 11:41, Hardy Ferentschik wrote: > > On 18 Jan 2012, at 7:30 PM, Steve Ebersole wrote: > >> 2) The way this is currently implemented, using JPA now has a dependency >> on the CDI API being available on the classpath. We need to decide if >> that is unreasonable. The other

Re: [hibernate-dev] Hibernate Search documentation build problem

2012-08-23 Thread Emmanuel Bernard
I have been able to reproduce that on OpenJDK 7 and Oracle's JDK 7. JDK 6 works fine for me. Obviously JDK 7 reads UTF-8 differently but I don't know how to fix that on our end. Anyone knows? On 23 août 2012, at 12:30, Nicolas Helleringer wrote: > Hi all, > > I have problem with the documentat

Re: [hibernate-dev] Introducing specialized subtypes of SearchException

2012-06-13 Thread Emmanuel Bernard
t;> >> So we won't have a single exception any more, I guess more will come >> as needed now that the "single type exception" rule is broken. >> >> Sanne >> >> On 13 June 2012 13:57, Hardy Ferentschik wrote: >>> +1 and as Emmanuel

Re: [hibernate-dev] Introducing specialized subtypes of SearchException

2012-06-13 Thread Emmanuel Bernard
+1 on a case by case basis. That can definitely help here. On 13 juin 2012, at 14:05, Sanne Grinovero wrote: > I'm wondering if we should specialize SearchException in some cases to > make it easier for business logic to react correctly, like in the case > of: > > https://bugzilla.redhat.com/sho

Re: [hibernate-dev] @Spatials

2012-06-04 Thread Emmanuel Bernard
On 4 juin 2012, at 17:03, Hardy Ferentschik wrote: > > On Jun 4, 2012, at 4:51 PM, Emmanuel Bernard wrote: > >> I don't think it can be SpatialValue as the annotations: >> >> - marks the property describing the spatial coordinates >> - describes ho

Re: [hibernate-dev] @Spatials

2012-06-04 Thread Emmanuel Bernard
I don't think it can be SpatialValue as the annotations: - marks the property describing the spatial coordinates - describes how the data will be indexed wrt spatial indexing (strategy + fine tuning) - describes the usual boost, etc properties It's the sister of @Field but @SpatialField is wrong

Re: [hibernate-dev] @Spatials

2012-06-01 Thread Emmanuel Bernard
On 1 juin 2012, at 15:49, Nicolas Helleringer wrote: > - @Spatial is supported at entity level and at property level. But if it > seems ok for an entity to have multiples location > through @Spatials (think a user with a work and a personnal > address/position) it seems more weird to have @Spatia

Re: [hibernate-dev] Hibernate Search Question

2012-05-30 Thread Emmanuel Bernard
Hello Christian, As Sanne said, we won't do it ourselves but if someone is interested, we will be more than happy to help and integrate the work. With the work done in recent versions, most specific code is now isolated and it is "just" a matter of creating a new module hibernate-orm-jpa under t

Re: [hibernate-dev] [OGM] [Neo4J] AssociationKey and missing info for associations mapping

2012-05-30 Thread Emmanuel Bernard
>> In a Document approach, there is no (useful) notion of association either >> but one can gather a set of elements under a property name. This is useful >> for collection of embedded and collection of associated entities that one >> want to embed. But the property name under which we would se

Re: [hibernate-dev] [OGM] [Neo4J] AssociationKey and missing info for associations mapping

2012-05-29 Thread Emmanuel Bernard
That's an interesting problem that we started to scratch in the document oriented approach. In the key/value pair, the underlying system has no notion of association. The table + column(s) mapping works great. In a Document approach, there is no (useful) notion of association either but one ca

Re: [hibernate-dev] Hibernate OGM: organize JIRA issues in components?

2012-05-24 Thread Emmanuel Bernard
lly assigned to its lead. I don't know though, whether > that's useful or required in the context of OGM. > > --Gunnar > > 2012/5/23 Emmanuel Bernard : >> What I'm saying is that, data stores are really 3 to 4 classes. Does it >> really warrant a full compone

Re: [hibernate-dev] Jira issues gone!?

2012-05-23 Thread Emmanuel Bernard
Email notifications are indeed much better and faster to open. On 23 mai 2012, at 12:39, Hardy Ferentschik wrote: > Now that the upgrade hiccups are mostly sorted out I have to say I like the > new version. > The integration with fisheye is now much better and I especially like the new > email

Re: [hibernate-dev] Hibernate OGM: organize JIRA issues in components?

2012-05-23 Thread Emmanuel Bernard
What I'm saying is that, data stores are really 3 to 4 classes. Does it really warrant a full component for each? On 22 mai 2012, at 18:24, Sanne Grinovero wrote: > On 22 May 2012 16:22, Emmanuel Bernard wrote: >> I almost did this a couple of time actually. >> My rational

Re: [hibernate-dev] Hibernate OGM: organize JIRA issues in components?

2012-05-22 Thread Emmanuel Bernard
I almost did this a couple of time actually. My rational for having datastore and not mongodb etc was that after the initial implementation, I expect few to no activity. If you think I am wrong, I'm fine with adding them as components. On 21 mai 2012, at 23:27, Sanne Grinovero wrote: > I'm temp

Re: [hibernate-dev] Multi-Tenancy and "shared" data

2012-05-21 Thread Emmanuel Bernard
On 15 mai 2012, at 19:04, Steve Ebersole wrote: > Multi-tenant setups sometimes have data that is shared between the > tenants (codec tables, etc). > > I think the first question is do we want to support this mixing? I > think it is common enough that it is worthwhile to support it. And I d

Re: [hibernate-dev] Memory consumption

2012-05-21 Thread Emmanuel Bernard
On 16 mai 2012, at 19:40, Andrej Golovnin wrote: > > org.jboss.as.jpa.puparser.PersistenceUnitXmlParser assumes that the > validation mode would be defined > in the persistence.xml by the tag "validation-mode". This tag has been added > in JPA 2.1 which is not yet > final. Solution: add NONE t

Re: [hibernate-dev] JPA merge question about detached entity with lazy fields that haven't been fetched...

2012-05-16 Thread Emmanuel Bernard
On 16 mai 2012, at 14:28, Scott Marlow wrote: > According to JPA 2.0 specification section 3.2.7.1, when merging a > detached entity with lazy associations that haven't been fetched: > > " > The persistence provider must not merge fields marked LAZY that have not > been fetched: it must ignore

Re: [hibernate-dev] Memory consumption

2012-05-16 Thread Emmanuel Bernard
On 15 mai 2012, at 23:51, Andrej Golovnin wrote: > One more thing: Could we have a property similar to > "hibernate.listeners.envers.autoRegister" > for Validator? I would like to disable Validator completely as it produces > too much garbage > (look at the pictures) when the application is dep

Re: [hibernate-dev] [OGM] OGM-174 Composite id fail on MongoDB: MongoDBDialect only takes the first id column into account and force _id

2012-05-15 Thread Emmanuel Bernard
No test yet, or they would have failed :) I did write an email on the subject a while ago ont he subject of (composite) id in mongodb, you will have to dig it up. On 15 mai 2012, at 18:08, Guillaume SCHEIBEL wrote: > Hi, > > Just to be sure, there is currently any test on the suite about compo

Re: [hibernate-dev] Interceptor question

2012-05-14 Thread Emmanuel Bernard
To me index / purge / purgeAll are not simply about what the MassIndexer does. I can see use cases where you manually control indexing without considering doing this en mass. remember, people can disable event based indexing. On 13 mai 2012, at 23:17, Sanne Grinovero wrote: > [thread diverged, no

Re: [hibernate-dev] Memory consumption

2012-05-13 Thread Emmanuel Bernard
speed and memory consumption. On 13 mai 2012, at 11:07, Emmanuel Bernard wrote: > We deliberately chose to optimize hibernate ORM to be fast even if that means > a bit more memory. > We can try and avoid some objects here as there as you propose but I don't > think that wou

Re: [hibernate-dev] Memory consumption

2012-05-13 Thread Emmanuel Bernard
We deliberately chose to optimize hibernate ORM to be fast even if that means a bit more memory. We can try and avoid some objects here as there as you propose but I don't think that would be as beneficial as finding the real culprit between H3 and H4's memory consumption difference. On 12 ma

Re: [hibernate-dev] Memory consumption

2012-05-13 Thread Emmanuel Bernard
In java EE 6, applications have access to Bean Validation. That's why you still see the reference to the serializable validator factory. 256k seems small enough, let's not waste time on that. By the way we need to start bean validation to be sure that your entities are not validated, so the in

Re: [hibernate-dev] [SEARCH] @Indexed on abstract classes

2012-05-12 Thread Emmanuel Bernard
On 12 mai 2012, at 11:12, Guillaume Smet wrote: >> That would go counter to the JPA design I think and to be honest, I like the >> idea of being able to not index a given branch of a class hierarchy. >> But more importantly, you would require Hibernate Search to scan for all >> subclasses in th

Re: [hibernate-dev] [SEARCH] @Indexed on abstract classes

2012-05-12 Thread Emmanuel Bernard
On 12 mai 2012, at 12:28, Hardy Ferentschik wrote: > >>> Scratch your own :) itch https://hibernate.onjira.com/browse/HSEARCH-703 >>> This is an issue that has been opened for a while but not addressed by like >>> of motivated contributors. The solution is fairly simple at first sight. >> >> F

Re: [hibernate-dev] Memory consumption

2012-05-12 Thread Emmanuel Bernard
On 11 mai 2012, at 00:11, Andrej Golovnin wrote: > After updating JBoss 7 to use the Hibernate Validator 4.3.0 and > adding > to our persistence.xml file I was able to reduce memory consumption > of SerializableValidatorFactory from ca. 90MB to ca. 256KB. :-) > What I was not able to do, is to a

Re: [hibernate-dev] [SEARCH] @Indexed on abstract classes

2012-05-12 Thread Emmanuel Bernard
On 10 mai 2012, at 08:49, Guillaume Smet wrote: > Hi Search team, > > I have this question for a long time but, this time, having 30 (and > growing) indexed entities inheriting from an abstract class, I thought > I might as well ask about it... > > Is there any reason why we can't set the @Inde

Re: [hibernate-dev] Interceptor question

2012-05-11 Thread Emmanuel Bernard
The reason I did map manual indexing to apply default is that I sided with Sanne s reasoning and I went on the side of caution with the API. I'd love to get more practical feedback before deciding to either: - stay as it is - map indexing and purge to the interceptor - I don't think we can safel

Re: [hibernate-dev] Memory consumption

2012-05-10 Thread Emmanuel Bernard
Also how do you come to the conclusion that hibernate ORM + Search take twice as much memory? I can't seem to follow your reasoning based on the pics you have sent. As Sanne point out, Configuration, JavaReflectionManager, FullTextIndexEventListener exist in both versions. It's unclear to me why

Re: [hibernate-dev] [OGM] "How to setup OGM" Wiki page

2012-05-10 Thread Emmanuel Bernard
We should do a release but I'd love to get the last couple of identified improvements for MongoDB in master before doing a release. On 9 mai 2012, at 23:37, Guillaume SCHEIBEL wrote: > Hi everyone, > > I read this > page > on > the

Re: [hibernate-dev] [HSEARCH] Proposal to change the default value of Field#norms()

2012-05-09 Thread Emmanuel Bernard
On 9 mai 2012, at 00:43, Andrej Golovnin wrote: > Hi Hardy, > >> It depends. Maybe you want to boost any of these fields ad index time. > > OK, what about the document id? It is indexed with NOT_ANALYZED_NO_NORMS. > As far as I understand (please correct me if I'm wrong) to boost fields at > i

Re: [hibernate-dev] [HSEARCH] Worker Configuration

2012-05-09 Thread Emmanuel Bernard
> > BTW can you or Sanne or someone else please take look at the class > AvroSerializationProvider, line 73. > Is it really needed to log for every instance of AvroSerializationProvider > the same > information? I have started today for the first time the application server > with the > new Hib

Re: [hibernate-dev] Coordinates storage in Lucene index for spatial functionality

2012-05-07 Thread Emmanuel Bernard
/hibernate-search/tree/HSEARCH-923-RADIANS > > While moving from degrees to radians I have seen that DSL has still some work > to do. > I shall focus on that now. > > Niko > > 2012/5/3 Sanne Grinovero > > On May 3, 2012 10:10 AM, "Emmanuel Bernard" wrote:

Re: [hibernate-dev] Hibernate Developer IRC meeting - 5/03

2012-05-04 Thread Emmanuel Bernard
mance will be >> very different depending if you read by columns or rows - forgot which >> one is better now - but in that case if the common use case is using >> the slower path it's usually a good idea to invert the matrix. >> >> I'd love it if we could ent

Re: [hibernate-dev] Hibernate Developer IRC meeting - 5/03

2012-05-04 Thread Emmanuel Bernard
ing but negligible at best. > > > On Thu 03 May 2012 11:04:30 AM CDT, Emmanuel Bernard wrote: >> Sorry I could not assist the meeting live but reviewed the logs and had some >> remarks, so ehre are the logs and my remarks :) >> >> ## Meeting logs >> >&

[hibernate-dev] Hibernate Developer IRC meeting - 5/03

2012-05-03 Thread Emmanuel Bernard
Sorry I could not assist the meeting live but reviewed the logs and had some remarks, so ehre are the logs and my remarks :) ## Meeting logs http://transcripts.jboss.org/meeting/irc.freenode.org/hibernate-dev/2012/hibernate-dev.2012-05-03-14.01.html Minutes (text):http://transcripts.jboss.org/m

Re: [hibernate-dev] Are you support specification?

2012-05-03 Thread Emmanuel Bernard
My bad the code nagivating the data at stake is the W3C DOM API. Not sure why I had JAXB in mind. On 3 mai 2012, at 14:50, Steve Ebersole wrote: > All JAXB stuff is slated for 5.0. No current code uses JAXB that I am aware > of. > > On Thu 03 May 2012 07:40:08 AM CDT, Emmanuel B

Re: [hibernate-dev] Are you support specification?

2012-05-03 Thread Emmanuel Bernard
it's actually probable because JAXB - which is what we use I think - is such a pain in the neck for these kind of situations. On 3 mai 2012, at 14:38, Emmanuel Bernard wrote: > It's expected that people that exclude use > > > > and people that do not want to excl

Re: [hibernate-dev] Are you support specification?

2012-05-03 Thread Emmanuel Bernard
It's expected that people that exclude use and people that do not want to exclude simply don't add this element. It's possible that our parsing does not account for people that use the explicit form to not exclude. Open a JIRA issue please. On 3 mai 2012, at 14:12, Dmitry Geraskov wrote:

Re: [hibernate-dev] Coordinates storage in Lucene index for spatial functionality

2012-05-03 Thread Emmanuel Bernard
How comes the DistanceFilter has to compute the distance for the whole corpus? By the way the actual storage (say via Hibernate ORM, or Infinispan) does not need to store in radian, so we don't need to do a conversion when reading an entity. On 3 mai 2012, at 10:45, Sanne Grinovero wrote: > Th

Re: [hibernate-dev] Coordinates storage in Lucene index for spatial functionality

2012-05-03 Thread Emmanuel Bernard
Let me see if I understood by rephrasing. I am trying to get a feel of where conversions happen. I am assuming that this is mostly relevant for the boolean query approach and the later circle memory filtering (ie that quad tree is not involved). Today we accept decimal coordinates from the user

Re: [hibernate-dev] OGM-157 copyright year

2012-05-02 Thread Emmanuel Bernard
The enw should be 2011-2012 BTW. On 18 avr. 2012, at 15:29, Guillaume SCHEIBEL wrote: > Hi guys, > > I'm starting the translation of the documentation in french and I've seen > the "copyright year" into the ogm.ent file is set to 2011. > Should I change it ? If yes should I take it into OGM-157 (

Re: [hibernate-dev] OGM-157 copyright year

2012-05-02 Thread Emmanuel Bernard
When in doubt, leave it out => separate topic branch and jira issue. On 18 avr. 2012, at 15:29, Guillaume SCHEIBEL wrote: > Hi guys, > > I'm starting the translation of the documentation in french and I've seen > the "copyright year" into the ogm.ent file is set to 2011. > Should I change it ? I

Re: [hibernate-dev] [OGM] Transaction-aware

2012-05-02 Thread Emmanuel Bernard
On 18 avr. 2012, at 17:39, Pawel Kozlowski wrote: > BTW: I wonder what would be the best way of going forward in terms of > github repositories: should I create a separate github repo (as I've > done) for the jgit storage + XAResource or fork the OGM repo and start > hacking in there... Sorry fo

Re: [hibernate-dev] [OGM] [MongoDB] Extended connection options support

2012-05-02 Thread Emmanuel Bernard
It looks like there is about a dozen properties. Note that Hibernate OGM already knows some of them like timeout. But still there are a bunch of properties. We could go the classical way and offer one Hibernate OGM property per MongoDB property or we could simply let the user pass the JSON struc

[hibernate-dev] [OGM] mongodb branch is dead, long live MongoDb in master

2012-05-02 Thread Emmanuel Bernard
After many weeks of work we finally have integrated the work done by Guillaume, Alan and Oliver back to master. To run the mongodb module, make sure to activate the mongodb profile mvn clean install -Pmongodb If like me you have installed MongoDB in a different host / port, you can use the

Re: [hibernate-dev] [OGM] Mapping associations in MongoDB

2012-04-25 Thread Emmanuel Bernard
> > which gives: > { > "_id": ObjectId("4f981dc43572f2a35c3826f9"), > "name": "Guillaume", > "address": { > "city": "Strasbourg", > "zipcode": 67000 > } > } >

[hibernate-dev] [OGM] Issue with accepting mongodb in master

2012-04-25 Thread Emmanuel Bernard
I'd like to accept MongoDB's work in OGM's master branch. There is one big elephant in the room. If I don't have MongoDB running in localhost, I can pass the test and thus I can't do a release. That's especially a problem for me as my MongoDB instance is in a VM and thus not localhost. I can't u

[hibernate-dev] [OGM] MongoDB safe mode

2012-04-25 Thread Emmanuel Bernard
BTW, by default MongoDB drivers do not wait for the operation to be executed on the server to return. So you could insert a data that would fail but not be noticed by the client. To avoid that, you need to pass the safe=true option. I think we should offer an option to be safe. Should it be the

<    2   3   4   5   6   7   8   9   10   11   >