Re: [hibernate-dev] Design: HSEARCH-1032 MassIndexer with a live update mechanism

2013-07-12 Thread Emmanuel Bernard
Another approach I could think of is related to how we would conceptually implement transaction isolation. We could create the new index and apply it before the old index. We could also delete on the fly data from the old index that has been put in the new index. While the worse case 4x size is st

Re: [hibernate-dev] Deprecating configurability of "hibernate.search.worker.scope" ?

2013-07-11 Thread Emmanuel Bernard
Fine by me, one of those brilliant flexibility points that did not reach its public. Let's call it succès d'estime :) On Thu 2013-07-11 15:04, Sanne Grinovero wrote: > I'm wondering if this property is really useful. Someone has a > practical example in which he would need it? > > http://docs.jbo

Re: [hibernate-dev] Marking API members as incubating

2013-07-11 Thread Emmanuel Bernard
On Thu 2013-07-11 14:37, Hardy Ferentschik wrote: > > On 11 Jan 2013, at 12:18 PM, Gunnar Morling wrote: > > > Here is the thing, we need to also need to start talking retention setting > > of the annotation. > > I think you were suggesting source retention. This means that the > > annotation

Re: [hibernate-dev] Marking API members as incubating

2013-07-10 Thread Emmanuel Bernard
I remember a few discussion where something like that has been contemplated. One thing that made us not do it AFAIR is that we would need some kind of shared project to host this across ORM, OGM, SEARCH etc. In the past we have deemed it not worth it. Emmanuel On Wed 2013-07-10 17:48, Gunnar Morl

Re: [hibernate-dev] Retrospective on "Pull Requests": a waste of time?

2013-07-10 Thread Emmanuel Bernard
On Wed 2013-07-10 14:12, Hardy Ferentschik wrote: > > > Option A, you rework that logic as part of the spatial feature PR. I am > > claiming that this is breaking the flow of getting spatial out the doors > > unnecessarily. > > > > Option B, the reviewer comment is converted in a JIRA that can be

Re: [hibernate-dev] Retrospective on "Pull Requests": a waste of time?

2013-07-10 Thread Emmanuel Bernard
On Wed 2013-07-10 11:09, Hardy Ferentschik wrote: > > >> What is the definition of not fully on topic. I would not suggest a change > >> in > >> class X for a pull request where only class Y and Z are affected. However, > >> if class X is touched and I see a potential improvement I think it can b

Re: [hibernate-dev] Retrospective on "Pull Requests": a waste of time?

2013-07-10 Thread Emmanuel Bernard
On 9 juil. 2013, at 21:39, Hardy Ferentschik wrote: > >> I also think opening issues to things that are not fully on the topic is >> a good strategy to keep the cycle on a given PR short. > > What is the definition of not fully on topic. I would not suggest a change in > class X for a pull re

Re: [hibernate-dev] Retrospective on "Pull Requests": a waste of time?

2013-07-10 Thread Emmanuel Bernard
curious if y'all are talking about all pull requests, whether that be >> from community members as well as those from within the team? >> >> On Tue 09 Jul 2013 02:39:12 PM CDT, Hardy Ferentschik wrote: >>> I basically like what I hear. Some wise words :-) >>&

Re: [hibernate-dev] Retrospective on "Pull Requests": a waste of time?

2013-07-09 Thread Emmanuel Bernard
Some random thoughts There has been a tendency to let PR sit a bit longer than it should as we all try to get our stuff done before diving into other's PRs. I have been particularly guilty and Hibernate OGM is a particularly bad example. I did not see too much lagging PRs on other projects but I

Re: [hibernate-dev] [OGM] Embedded MongoDB for tests

2013-07-09 Thread Emmanuel Bernard
xternal MongoDB installation, > >> the > >>>>> "useExternalMongoDb" property can be specified like this: > >>>>> > >>>>> mvn clean install -DuseExternalMongoDb > >>>>> > >>>>> This wi

[hibernate-dev] [OGM] CI and MongoDB tests

2013-07-04 Thread Emmanuel Bernard
>From what I can see and understand the OGM builds (hibernate-ogm-master specifically) do not test MongoDB. Is that something expected? Can we envision adding MongoDB testing? Emmanuel ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://

Re: [hibernate-dev] [HSEARCH] Geo queries in ElasticSearch

2013-07-03 Thread Emmanuel Bernard
facets is to do this many times (as many times > as they are defined ranges) as automatically as possible. > > Niko > > 2013/7/3 Ales Justin : > > Can you then also easily (aka really fast) know which are those points -- > > even with really big number of data? >

Re: [hibernate-dev] new "releases" feature in GitHub

2013-07-03 Thread Emmanuel Bernard
I'm actually not super impressed, the automation misses doc and we need some kind of RSS feed. Also after they stopped binary support, I don't trust them a lot in this area... But I'm a grumpy old guy so that might explain. Emmanuel On Wed 2013-07-03 18:47, Sanne Grinovero wrote: > looking good

[hibernate-dev] [OGM] Load entities from native query results

2013-07-03 Thread Emmanuel Bernard
Gunnar, Davide and I had a discussion on how to get results out of these soon to be nicely generated native queries in Hibernate OGM http://transcripts.jboss.org/meeting/irc.freenode.org/hibernate-dev/2013/hibernate-dev.2013-07-03-13.59.html http://transcripts.jboss.org/meeting/irc.freenode.org/hi

Re: [hibernate-dev] [HSEARCH] Geo queries in ElasticSearch

2013-07-03 Thread Emmanuel Bernard
and to strengthen > the search you want geo facets then you have to compute distance on > all the 10k results to produce that. > On the performance PoV this will fail. > > Niko > > > 2013/7/3 Emmanuel Bernard : > > I'm more interested in something like

Re: [hibernate-dev] [OGM] Package structure in OGM modules

2013-07-03 Thread Emmanuel Bernard
I have created https://hibernate.atlassian.net/browse/OGM-292 to capture this. On Wed 2013-07-03 14:17, Emmanuel Bernard wrote: > It grew with a similar package structure han ORM but that can be > revisited. In fact there are many package changes we need to do (api / > spi / impl split

Re: [hibernate-dev] [OGM] Package structure in OGM modules

2013-07-03 Thread Emmanuel Bernard
It grew with a similar package structure han ORM but that can be revisited. In fact there are many package changes we need to do (api / spi / impl split etc) but these are not important for now. On Wed 2013-07-03 11:34, Gunnar Morling wrote: > Hi, > > I'm wondering about the package structure in

Re: [hibernate-dev] [HSEARCH] Geo queries in ElasticSearch

2013-07-03 Thread Emmanuel Bernard
670421 > > > I see nothing we cannot do. > > Niko > > 2013/7/3 Emmanuel Bernard : > > This morning I was reading > > http://hashmade.fr/elastic-search-geo-distance-search-with-sorted-and-faceted-results-using-java-native-api/ > > And the code https://github.com/j

[hibernate-dev] [HSEARCH] Geo queries in ElasticSearch

2013-07-03 Thread Emmanuel Bernard
This morning I was reading http://hashmade.fr/elastic-search-geo-distance-search-with-sorted-and-faceted-results-using-java-native-api/ And the code https://github.com/jsebrien/elastic-search-tests I have to say that we compare quite well in number of lines of code and readability. Considering t

[hibernate-dev] [HSEARCH] Discussions on metamodel, use cases for it and FieldBridge information for optimizations and metamodel integration

2013-07-02 Thread Emmanuel Bernard
A few of us discussed the hibernate Search metamodel, its use cases and how the API should look like as well as FieldBridge and how it could expose data for optimization and metadata integration. First meeting 2013-07-01 http://transcripts.jboss.org/meeting/irc.freenode.org/hibernate-dev/2013/hibe

[hibernate-dev] [HSEARCH] ticketmonster remaining todos

2013-06-28 Thread Emmanuel Bernard
remember the fork of ticketmonster adding Hibernate Search? https://github.com/jboss-jdf/ticket-monster/tree/hibernate-search I have added the main todos to make it proper into TicketMonster. They are all subtasks of https://issues.jboss.org/browse/JDF-57 If you want to take a pick at one to rem

Re: [hibernate-dev] [OGM] Embedded MongoDB for tests

2013-06-28 Thread Emmanuel Bernard
This looks like a good idea and fixes the workaround we had around optional testing based on profiles. The only drawback is that we still need to make sure OGM is naturally usable without it but if we use https://github.com/joelittlejohn/embedmongo-maven-plugin it looks like the mongodb instance i

Re: [hibernate-dev] [hsearch] JSON version of Hibernate Search query

2013-06-14 Thread Emmanuel Bernard
On Thu 2013-06-13 21:33, Hardy Ferentschik wrote: > > >> Right, that's what I am also trying to see/find. > > > > Sorry, I got confused by your question initially. The query language is not > > for an > > end-user, it is for developers or machines. > > So why would a developer use it? One point

Re: [hibernate-dev] [hsearch] JSON version of Hibernate Search query

2013-06-13 Thread Emmanuel Bernard
On Thu 2013-06-13 16:10, Hardy Ferentschik wrote: > > On 13 Jan 2013, at 2:11 PM, Gunnar Morling wrote: > > > 2013/6/13 Hardy Ferentschik > > > > On 13 Jan 2013, at 8:47 AM, Gunnar Morling wrote: > > > > > Would creating a "real" query language instead of a serialized object > > > representa

Re: [hibernate-dev] JSON version of Hibernate Search query

2013-06-12 Thread Emmanuel Bernard
Is > this intended to be written by humans or other applications? > > --Gunnar > > > > > 2013/6/11 Emmanuel Bernard > > > Hey everyone, > > > > Sanne and I discussed Hibernate Search queries and serialization in > > general. I did play around

[hibernate-dev] JSON version of Hibernate Search query

2013-06-11 Thread Emmanuel Bernard
Hey everyone, Sanne and I discussed Hibernate Search queries and serialization in general. I did play around that to represent Hibernate Search DSL queries into JSON. https://gist.github.com/emmanuelbernard/5760676 It is a very first draft (not reviewed). What is really nice is that I did not h

Re: [hibernate-dev] Fwd: [jdf-dev] JBoss Modules dependency vs pain POM dependency + exclusions

2013-06-06 Thread Emmanuel Bernard
On Thu 2013-06-06 11:31, Scott Marlow wrote: > > If the static Hibernate Search module, depends on a static Hibernate > ORM module in WildFly 8, I think that is fine, but applications > wouldn't be able to include their own Hibernate Search jars (since > the static Hibernate ORM module only sees s

Re: [hibernate-dev] [jdf-dev] JBoss Modules dependency vs pain POM dependency + exclusions

2013-06-06 Thread Emmanuel Bernard
gt; > > Next time ping me for any issues, as I've done this ages ago for > > CapeDwarf. :-) > > > > On Jun 6, 2013, at 1:37 PM, Emmanuel Bernard > > wrote: > > > > > Below is an email describing the issues i had to get Hibernate Search > > run

Re: [hibernate-dev] [Blog] Hibernate OGM with Jboss AS 7

2013-06-06 Thread Emmanuel Bernard
013 09:49, "Guillaume SCHEIBEL" > >> wrote: > >>> > >>> I'll do better, I'll try with another machine which doesn't know OGM at > >>> all. > >>> > >>> > >>> 2013/6/6 Emmanuel Bernard > >>

[hibernate-dev] Fwd: [jdf-dev] JBoss Modules dependency vs pain POM dependency + exclusions

2013-06-06 Thread Emmanuel Bernard
? Emmanuel Begin forwarded message: > From: Pete Muir > Date: 6 juin 2013 11:21:13 UTC+02:00 > To: Emmanuel Bernard > Cc: jdf-...@lists.jboss.org > Subject: Re: [jdf-dev] JBoss Modules dependency vs pain POM dependency + > exclusions > > Hey Emmanuel, > > On 5 Jun 20

Re: [hibernate-dev] [Blog] Hibernate OGM with Jboss AS 7

2013-06-06 Thread Emmanuel Bernard
t all. > > > 2013/6/6 Emmanuel Bernard > > > Well make sure to clean your maven repo cache before you test. Or else > > your local cache will contain the snapshot. Likewise, the remote repo > > might contain an old snapshot and I dont' think you can guard against >

Re: [hibernate-dev] [Blog] Hibernate OGM with Jboss AS 7

2013-06-06 Thread Emmanuel Bernard
comments. You are right, "not a panacea" is what I meant. > For the "mvn clean install" it worth to be tried, I'll keep you up to date > on that. > > Next step, how to write a new datastore provider. > > Guillaume > > > 2013/6/6 Emmanuel Bernard

Re: [hibernate-dev] [Blog] Hibernate OGM with Jboss AS 7

2013-06-06 Thread Emmanuel Bernard
Nice :) Do you really mean " OGM definitely is a panacea". From your sentence it seems you meant " OGM definitely is not a panacea" > Then just go under %HIBERNATE_OGM_HOME% /hibernate-ogm-modules and > perform a mvn clean install. I suspect that won't work since the other maven modules are not

Re: [hibernate-dev] Running Jenkins on personal branches

2013-06-05 Thread Emmanuel Bernard
t; > > > You can clone the Jenkins job and point it at your branch. Not so sure > > I want this to happen automatically for all my branches. > > > > On 06/04/2013 05:36 PM, Gunnar Morling wrote: > >> If you just want an ad-hoc solution, you could create a cop

[hibernate-dev] Running Jenkins on personal branches

2013-06-04 Thread Emmanuel Bernard
With the CI slowly getting in place. Would there be a way to test a branch of mine without having to push it as a pull-request? When I push a branch on emmanuelbernard/hibernate-search.git without creating a PR, it would still be nice to be able to have it run. Thoughts?

Re: [hibernate-dev] HSEARCH Faceting and facet counts

2013-06-03 Thread Emmanuel Bernard
way they do it makes sense but > it's impressive that the user is fooled into a non-consistent API, and > it still "feels" like all is consistent. > > On 3 June 2013 14:10, Emmanuel Bernard wrote: > > On Mon 2013-06-03 10:28, Sanne Grinovero wrote: > >>

Re: [hibernate-dev] HSEARCH Faceting and facet counts

2013-06-03 Thread Emmanuel Bernard
On Mon 2013-06-03 10:28, Sanne Grinovero wrote: > On 3 June 2013 09:59, Hardy Ferentschik wrote: > > > > On 31 Jan 2013, at 11:32 PM, Emmanuel Bernard > > wrote: > > > >> I know we had a debate but I can't seem to find any detail in the > >>

[hibernate-dev] HSEARCH Faceting and facet counts

2013-05-31 Thread Emmanuel Bernard
I know we had a debate but I can't seem to find any detail in the documentation about how facet selection influences the facet counts. In my demo, the facet count is applied after the selection. ie if I do a query that returns '< $100' = 20 and '> $100' = 45, once I select '< $100', the count disp

Re: [hibernate-dev] DocumentBuilder refactoring in Hibernate Search: how to deal (internally) with metadata

2013-05-31 Thread Emmanuel Bernard
On Fri 2013-05-31 11:17, Hardy Ferentschik wrote: > > On 31 Jan 2013, at 11:13 AM, Hardy Ferentschik wrote: > > >>Set getIndexNames(); > >> > >> Would something like Set getIndexes() make sense? > > > > That's an interesting thought. In fact I was wondering whether more index > > spec

Re: [hibernate-dev] DocumentBuilder refactoring in Hibernate Search: how to deal (internally) with metadata

2013-05-30 Thread Emmanuel Bernard
On Thu 2013-05-30 14:51, Hardy Ferentschik wrote: > >> Things we wanted but where too hard to do so far: > >> - Separate annotation reading from Document building. Separate > >> validity checks too. > >> - It checks for JPA @Id using reflection as it might not be available > >> -> pluggable? > > >

Re: [hibernate-dev] DocumentBuilder refactoring in Hibernate Search: how to deal (internally) with metadata

2013-05-30 Thread Emmanuel Bernard
On Wed 2013-05-29 17:39, Sanne Grinovero wrote: > We're starting a series of refactorings in Hibernate Search to improve > how we handle the entity mapping to the index; to summarize goals: > > 1# Expose the Metadata as API > > We need to expose it because: > a - OGM needs to be able to read thi

Re: [hibernate-dev] HSEARCH FacetManager.getFacetingNames()

2013-05-29 Thread Emmanuel Bernard
A proposal to get Facet.getValue more usable. https://hibernate.atlassian.net/browse/HSEARCH-1343 On Wed 2013-05-29 14:33, Emmanuel Bernard wrote: > Actually a List might make sense if the order you define faceting is the > order you want to expose it. But that's a tiny bit far fetc

Re: [hibernate-dev] HSEARCH FacetManager.getFacetingNames()

2013-05-29 Thread Emmanuel Bernard
t; } > > Either way it should probably be a set. > > --Hardy > > On 29 Jan 2013, at 1:10 PM, Emmanuel Bernard wrote: > > > Trying to write a slightly generic code listing the facets and exposing > > them in a UI. I cannot find a way to list the faceting requests

[hibernate-dev] HSEARCH FacetManager.getFacetingNames()

2013-05-29 Thread Emmanuel Bernard
Trying to write a slightly generic code listing the facets and exposing them in a UI. I cannot find a way to list the faceting requests applied. Am I missing something? What do you think of adding interface FacetingManager { List getFacetingNames(); ... } I'd love a less

Re: [hibernate-dev] Search: Someone needing the standalone FullTextManager ?

2013-05-29 Thread Emmanuel Bernard
Get rid of it. I forgot about that actually. It is still an interesting idea to lower the barrier to people adding data source integration with Hibernate Search but if it requires a complete rewrite, better remove this experiment. On 28 mai 2013, at 13:38, Sanne Grinovero wrote: > On 19 May

[hibernate-dev] OGM Roadmap

2013-05-26 Thread Emmanuel Bernard
Hello everyone, Since Hibernate OGM is back with Davide and Gunnar working actively on it, I put in the wiki a roadmap for Hibernate OGM with things we or or less formally discussed in the past. https://community.jboss.org/wiki/HibernateOGMRoadmap That's (always) a draft and we can discuss pri

Re: [hibernate-dev] Hibernate ORM and JDK 6

2013-05-17 Thread Emmanuel Bernard
ts Java6 for users. > > On 17 May 2013 10:26, "Emmanuel Bernard" wrote: > > > > > I tried to get ORM imported in IntelliJ IDEA and it fails with a > > > Unsupported major.minor version 51.0. In Mac OS IntelliJ boots with JDK > > > 1.6 AFAIK and it se

[hibernate-dev] Hibernate ORM and JDK 6

2013-05-17 Thread Emmanuel Bernard
I tried to get ORM imported in IntelliJ IDEA and it fails with a Unsupported major.minor version 51.0. In Mac OS IntelliJ boots with JDK 1.6 AFAIK and it seems the tools (like gradle) inherit this. Any of the Mac guys found an acceptable solution to import the Gradle project in IntelliJ? >From wh

[hibernate-dev] Manual vs Developer Guide

2013-05-16 Thread Emmanuel Bernard
Hello guys, I have a question I should have asked years ago. I don't understand the difference between the Hibernate ORM Manual and the Hibernate ORM Developer Guide. What is the fundamental difference? Emmanuel ___ hibernate-dev mailing list hibernate-

Re: [hibernate-dev] Welcome Nicolas to the Search committers

2013-05-16 Thread Emmanuel Bernard
Nice :) On 16 mai 2013, at 01:01, Sanne Grinovero wrote: > Dear All, > since Nicolas didn't "just" contribute an awesome new feature for > Hibernate Search but is also actively maintaining it, I've added him > to the Hibernate Search committers team. > > I find myself asking for his opinion on

Re: [hibernate-dev] [OGM] Metamodel

2013-05-03 Thread Emmanuel Bernard
Hello Davide, Technically most of the knowledge is in https://hibernate.atlassian.net/browse/OGM-208 but it's definitely quite blurry for a new comer ;) Let me try and summarize it for you. With that you'll be able to better grasp the comments in OGM-208 ## Goals We want a metadata facility as

Re: [hibernate-dev] A synchronous JGroups backend for Hibernate Search

2013-05-03 Thread Emmanuel Bernard
I did not think of that but an "implicit" or "auto" setting makes some sense. Just to be sure, the new immplicit setting / behavior will break the semantic of what's going on so it should at least but a minor version bump. Correct? BTW, did you guys even found out why using sync was taking so much

Re: [hibernate-dev] hibernate dialect for hana

2013-05-03 Thread Emmanuel Bernard
But we can definitely have a wiki page or even better a table in the documentation for third party dialects and where they are hosted. That' cheap for us and keep the ecosystem thriving. Emmanuel On Fri 2013-05-03 17:17, Strong Liu wrote: > I think the main reason is the lack of dev resource, if

Re: [hibernate-dev] Checkstyle breaking the OGM build

2013-05-03 Thread Emmanuel Bernard
e had trouble with > > it on windows. > > On 2 May 2013 23:41, "Guillaume SCHEIBEL" > > wrote: > > > > > Hi Emmanuel, > > > > > > Sorry I can't reproduce it and both maven & intellij plugins are telling > > me > > > the Label

[hibernate-dev] Checkstyle breaking the OGM build

2013-05-02 Thread Emmanuel Bernard
Taking OGM master, I get a checkstyle failure on one of the test file. But what is surprising is that I don't see new lines at the end of the described file. Can you guys reproduce? Emmanuel [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ hibernate-ogm-core --- [debug] exec

Re: [hibernate-dev] Relaxing the pull request review requirement

2013-05-02 Thread Emmanuel Bernard
I am not certain everyone follows all pull request notifications so that might explain the lack. At least in the "NoORM" subteam (search, OGM, Validator) we should handle pull requests for all of these projects even if its not "our" project du jour. On 1 mai 2013, at 19:49, Gunnar Morling wro

Re: [hibernate-dev] [HSEARCH] Dynamic Sharding and directory template

2013-04-12 Thread Emmanuel Bernard
Hiding behind a long and deep email won't hide the fact that you have not answered my question :) More inline. On Thu 2013-04-11 17:47, Sanne Grinovero wrote: > Man your simple question is actually super complex. > > Conclusion first: I think it's important we can always identify any > index jus

[hibernate-dev] [HSEARCH] Dynamic Sharding and directory template

2013-04-11 Thread Emmanuel Bernard
I am currently working on a solution for dynamically adding new shards to Hibernate Search (for example one per tenant with a list growing). https://hibernate.atlassian.net/browse/HSEARCH-472 Things are going well but there is an interesting problem related to a subsequent feature https://hibern

Re: [hibernate-dev] hooking native MongoDB queries on mapped entities

2013-04-11 Thread Emmanuel Bernard
ing more of EntityManager.createNativeQuery but Session.createSQLQuery is semantically the same. SQLQuery might have many unimplemented methods and if that's really too problematic, we can imagine a dedicated method but I'd like to avoid that. > > On Wed, Apr 10, 2013 at 6:31 PM, Emmanu

Re: [hibernate-dev] hooking native MongoDB queries on mapped entities

2013-04-10 Thread Emmanuel Bernard
to the DBCursor except that it returns an > > Object of the type entityType. > > > > I'm using the same approach used for the OgmMassIndexer therefore the > > return type must be en entity. > > > > Do you think something like this can be useful? > >

Re: [hibernate-dev] hooking native MongoDB queries on mapped entities

2013-04-08 Thread Emmanuel Bernard
>From what I understand, this would be equivalent to the @NAtiveNamedQuery support in JPA where you define the binding between the result set and the objects. We can give it a shot. I wonder how much of this is related to the JP-QL query mechanism though and should be shared. Emmanuel On Sun 2013

Re: [hibernate-dev] New CI machine preview

2013-04-04 Thread Emmanuel Bernard
On 3 avr. 2013, at 21:14, Hardy Ferentschik wrote: > > On 3 Apr 2013, at 20:34, Sanne Grinovero wrote: > >> Thinking about the domain name, would you prefer >> - hibernate-ci >> - ci.hibernate.org > > +1 for ci.hibernate.org. I also like that it not reflect Jenkins in its name. I like it t

Re: [hibernate-dev] Fwd: Re: [jboss-as7-dev] Modules and hidden packages

2013-04-03 Thread Emmanuel Bernard
On 3 avr. 2013, at 18:11, Hardy Ferentschik wrote: > Or why not just rename the packages to _private ;-) (only over my dead body > btw) That's why I did fight the fight. I feared for your life ;) ___ hibernate-dev mailing list hibernate-dev@lists.jbo

[hibernate-dev] Fwd: Re: [jboss-as7-dev] Modules and hidden packages

2013-04-03 Thread Emmanuel Bernard
I did not know that JBoss AS modules let you define a glob of excluded (private) packages. Not sure if we use that in our HSearch (and other) modules, but we should :) Emmanuel ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jb

Re: [hibernate-dev] [HSEARCH] New additional repository

2013-04-03 Thread Emmanuel Bernard
On Wed 2013-04-03 16:06, Hardy Ferentschik wrote: > > On 3 Jan 2013, at 3:55 PM, Emmanuel Bernard wrote: > > > On Wed 2013-04-03 15:46, Hardy Ferentschik wrote: > >> > >> On 3 Jan 2013, at 2:10 PM, Emmanuel Bernard wrote: > >> > >>> If

Re: [hibernate-dev] [HSEARCH] New additional repository

2013-04-03 Thread Emmanuel Bernard
On Wed 2013-04-03 15:46, Hardy Ferentschik wrote: > > On 3 Jan 2013, at 2:10 PM, Emmanuel Bernard wrote: > > > If you work on Hibernate Search, here is a heads up. Make sure to either run > > > >mvn clean install -s settings-example.xml > > > > or a

Re: [hibernate-dev] New CI machine preview

2013-04-03 Thread Emmanuel Bernard
name, but in terms of consistency I noticed only the > java projects (jars we distribute) have such a prefix. > Websites and other infrastructure does not (in.relation.to awestruct) > You want to rename that too? > > > On 3 April 2013 13:16, Emmanuel Bernard wrote: > > &g

Re: [hibernate-dev] New CI machine preview

2013-04-03 Thread Emmanuel Bernard
Thanks guys, nice tough on the OAuth - GitHub integration. I have a proposal: can we rename the Git repo hosting the configuration to hibernate-continuous-integration or hibernate-ci? I'm specifically asking because GitHub is not quite consistent in whether or not it shows the organization it com

[hibernate-dev] [HSEARCH] New additional repository

2013-04-03 Thread Emmanuel Bernard
If you work on Hibernate Search, here is a heads up. Make sure to either run mvn clean install -s settings-example.xml or add in your settings.xml the profile and associated repository redhat-earlyaccess-repository and add it to the list of active profiles. settings-example.xml will show you

Re: [hibernate-dev] can a mapped super class extends from an entity?

2013-04-03 Thread Emmanuel Bernard
AFAIR, the test is a case Linda and the JPA EG wanted covered. On Tue 2013-04-02 11:49, Hardy Ferentschik wrote: > Hi, > > I think the code is wrong. The test setup seems correct. The spec does not > really rule this case out. > I did not think about this case when writing the code below. > >

Re: [hibernate-dev] Scanner contract

2013-03-18 Thread Emmanuel Bernard
lve named things. > > At least that is how I read the code. > > > On 03/18/2013 10:40 AM, Steve Ebersole wrote: > >On Mon 18 Mar 2013 09:10:40 AM CDT, Emmanuel Bernard wrote: > >> > >>That was the point of the Scanning API in the first place: not to depend >

[hibernate-dev] Fwd: [infinispan-dev] Bye bye wrappers, ComparingConcurrentHashMapv8 is here (ISPN-2281)

2013-03-18 Thread Emmanuel Bernard
Galder's work could very well be an interesting solution where we use IdentityMap. I know ORM has be using it less with the bytecode rework but I think we still use it in particular in Hibernate Validator. ___ hibernate-dev mailing list hibernate-dev@lis

Re: [hibernate-dev] Scanner contract

2013-03-18 Thread Emmanuel Bernard
On Mon 2013-03-18 8:15, Steve Ebersole wrote: > On Mon 18 Mar 2013 05:14:01 AM CDT, Emmanuel Bernard wrote: > > > >JBoss AS does use this contract so if you break it, we will need some > >kind of compatibility matrix between Hibernate and JBoss AS and EAP. > >Not unsurm

Re: [hibernate-dev] Scanner contract

2013-03-18 Thread Emmanuel Bernard
JBoss AS does use this contract so if you break it, we will need some kind of compatibility matrix between Hibernate and JBoss AS and EAP. Not unsurmountable but always a small annoyance. Maybe other environments also make use of this interface but I am not aware of them. I'm surprised getUnqualif

Re: [hibernate-dev] [OGM] Ogm mass indexer, how to convert Tuple/EntityKey to Entity/Id?

2013-03-12 Thread Emmanuel Bernard
bjects in the > list is not IndexedLabel. > > If I first get the list of news and than for each of them I called the > method news.getLabels(), everything works fine. > > Any thoughts > > Thanks > > On Thu, Mar 7, 2013 at 10:15 AM, Emmanuel Bernard > wrote: &

Re: [hibernate-dev] [OGM] Ogm mass indexer, how to convert Tuple/EntityKey to Entity/Id?

2013-03-07 Thread Emmanuel Bernard
I have no more coin for this one so I have dumped what I have so far https://github.com/hibernate/hibernate-ogm/pull/175 Emmanuel On Wed 2013-03-06 19:18, Emmanuel Bernard wrote: > I've successfully implemented OGM-151 for EntityKey which is the one we > need to move OGM-273 forward f

Re: [hibernate-dev] [OGM] Ogm mass indexer, how to convert Tuple/EntityKey to Entity/Id?

2013-03-06 Thread Emmanuel Bernard
could introduce AssociationKeyMetadata but build it on-demand - that one is easier to achieve. Emmanuel On Wed 2013-03-06 15:32, Davide D'Alto wrote: > it's ok for me > > Davide > > On Wed, Mar 6, 2013 at 3:28 PM, Emmanuel Bernard > wrote: > > I'm planning on

Re: [hibernate-dev] [OGM] Ogm mass indexer, how to convert Tuple/EntityKey to Entity/Id?

2013-03-06 Thread Emmanuel Bernard
27;s why I > was interested in the fetch profiles and graph loading in JPA 2.1 > > On 5 March 2013 17:44, Emmanuel Bernard wrote: > > I have implemented a solution that gives an entity based on a tuple. > > https://hibernate.onjira.com/browse/OGM-273#comment-50082 > > > >

Re: [hibernate-dev] [OGM] Ogm mass indexer, how to convert Tuple/EntityKey to Entity/Id?

2013-03-05 Thread Emmanuel Bernard
that will work for associations. I suspect some nasty n+1 is happening as best. Worse case, an exception :) Emmanuel On Tue 2013-03-05 10:30, Emmanuel Bernard wrote: > We might hope for a stable enough contract on Hibernate Search and > hope that we won't break serializability betwee

Re: [hibernate-dev] [OGM] Ogm mass indexer, how to convert Tuple/EntityKey to Entity/Id?

2013-03-05 Thread Emmanuel Bernard
a lot of config and Infinispan machinery I'm not sure is here > > today > > :) > > ah > > I don't care how it's called, it's one of those patterns > > that make the code harder to follow > > I was actually trying to remember the name of the

Re: [hibernate-dev] [OGM] Ogm mass indexer, how to convert Tuple/EntityKey to Entity/Id?

2013-03-04 Thread Emmanuel Bernard
On 4 mars 2013, at 17:39, Sanne Grinovero wrote: > On 4 March 2013 16:20, Emmanuel Bernard wrote: >> I already gave what I knew on how to load an entity from a tuple (which >> isn't much) but we can try and dig together. Something I thought about >> is that ORM p

Re: [hibernate-dev] Loader redesign proposal

2013-03-04 Thread Emmanuel Bernard
erence I guess, but while developing major features I > >>find it easier to keep track of my ongoing work that way > >> > >>On Mar 4, 2013 7:02 AM, "Emmanuel Bernard" >><mailto:emman...@hibernate.org>> wrote: > >> > >>nice, I

Re: [hibernate-dev] [OGM] Ogm mass indexer, how to convert Tuple/EntityKey to Entity/Id?

2013-03-04 Thread Emmanuel Bernard
n but > to implement > a new one, which shares the same last phase (consumption of Lucene Documents > from multithreaded producers); this would be an extremely trivial one-phase > processor invoking the DocumentBuilder, provided we have some way to have > the GridDialect expose (to avoid &qu

Re: [hibernate-dev] ValidationMode

2013-03-04 Thread Emmanuel Bernard
> whenever possible. > > > On Mon 04 Mar 2013 07:53:34 AM CST, Emmanuel Bernard wrote: > >I don't follow you. It seems to make sense to me to have ddl and > >callback. > > > >It says validate entities on CRUD events, apply database generation in >

Re: [hibernate-dev] ValidationMode

2013-03-04 Thread Emmanuel Bernard
IMHO not much sense at all. > > So IMO we ought to be deprecating the ability to have multiple > selections here. > > > On Mon 04 Mar 2013 07:21:26 AM CST, Emmanuel Bernard wrote: > >Our impl allow multiple choices to be able to add ddl as an additional > >behavior as it

Re: [hibernate-dev] ValidationMode

2013-03-04 Thread Emmanuel Bernard
Our impl allow multiple choices to be able to add ddl as an additional behavior as it (was) not defined in the spec. And indeed, auto uses the degraded mode and callback forced BV to be used and raise an exception if it is not present. I can see apps deciding for one or the other. Emmanuel On Fr

Re: [hibernate-dev] [OGM] Transactions in Neo4j datastore

2013-03-04 Thread Emmanuel Bernard
Do you have an alternative in mind? My understanding is that if you write a Neo4J JtaPlatform, then the transaction will be started: - if the transaction is manually started by the wrapping code - if someone uses Session.beginTransaction() or EntityManager.getTransaction().begin() You wanted t

Re: [hibernate-dev] core built-in encryption

2013-03-04 Thread Emmanuel Bernard
Irrespective of this discussion, a single salt value for all you entries is discouraged. It's better to have one salt value per entry. Some algorithms even embed the salt in the encrypted value itself so that everything is stored in a single column. In an ideal world, you would keep the salts in a

Re: [hibernate-dev] Loader redesign proposal

2013-03-04 Thread Emmanuel Bernard
nice, I'll have a look. If I can squeeze a bit of OGM friendliness to the redesign, that would be a nice bonus. By the way, any reason to create a dedicated repo instead of a branch? I mistakenly imported your repo in my orm repo ;) Emmanuel On Mon 2013-02-25 13:19, Steve Ebersole wrote: > I bel

Re: [hibernate-dev] JPA 2.1 API compiled with JDK 7!?

2013-03-04 Thread Emmanuel Bernard
JPA 2.1 users cannot portably use JDK 6 but if we can we could try and support it in our implementations. Best effort. On Mon 2013-02-25 19:17, Gunnar Morling wrote: > > 1) JPA 2.1 is part of EE 7 which requires SE 7 > > But couldn't JPA 2.1 be used in 1.6 SE environments? I guess there'd be > us

Re: [hibernate-dev] [OGM] Ogm mass indexer, how to convert Tuple/EntityKey to Entity/Id?

2013-03-04 Thread Emmanuel Bernard
The mass indexer does not work at the resultset level so mixing tuples and mass indexer seems wrong to me. Have you considered something like Iterator getAllTuplesFrom(String... tableNames); And then expose an Iterator (ie entities) to the mass indexer? I mean we could make it work with your

Re: [hibernate-dev] Is @SecondaryTable required when a join table is specified?

2013-03-04 Thread Emmanuel Bernard
I don't think you are right Gail. You can use secondary tables even if no association are involved. We happen to use the secondary table mechanism to map one to one + join table but that's an implementation detail of Hibernate ORM. On 1 mars 2013, at 20:49, Gail Badner wrote: > Actually, ther

Re: [hibernate-dev] Changelog file in Hibernate ORM

2013-03-04 Thread Emmanuel Bernard
I like the changelog file too for a few reasons : - URLs do change. Say the URL to point to the changelog generation evolves in JIRA. - scrolling and CTRL+F is pretty good to find the info you are looking for. - I like self contained releases It is a manual step but we might be able to automati

Re: [hibernate-dev] Extending hibernate

2013-02-06 Thread Emmanuel Bernard
It's better to use the user forums but here are a few hints. Depending on the collection type, Hibernate can delete the precise rows that it needs to. In other cases it has to clean all rows and recreate them. It seems you are using a collection that is neither a Set nor an indexed collection (Li

[hibernate-dev] Hibernate Search 4.2 Final is out

2013-01-16 Thread Emmanuel Bernard
Hibernate Search 4.2 is out with some cool new features like spatial queries and the ability to smoothly index files like Word documents, MP3 metadata, PDFs etc. Read more at http://goo.gl/57vs1 Emmanuel ___ hibernate-dev mailing list hibernate-dev@list

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

2013-01-07 Thread Emmanuel Bernard
Good idea. Done. On Mon 2013-01-07 11:37, Sanne Grinovero wrote: > Thanks! indeed. > If you wish to add the credentials to the private wiki having all > other accounts, we can avoid asking your time for such non-interesting > tasks ;) > > Sanne > > On 7 January 2013

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

2013-01-07 Thread Emmanuel Bernard
AFAIK, it's back to normal. On 4 janv. 2013, at 10:28, Emmanuel Bernard wrote: > GitHub fixed the HTTP 500 error for OAuth but the test hook still seem > to fail. I've followed up with them. > > Emmanuel > > On Thu 2013-01-03 15:00, Emmanuel Bernard wrote: >&

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

2013-01-04 Thread Emmanuel Bernard
GitHub fixed the HTTP 500 error for OAuth but the test hook still seem to fail. I've followed up with them. Emmanuel On Thu 2013-01-03 15:00, Emmanuel Bernard wrote: > I have done some tests and you are correct. The token / secret seems > legit though. I tried to renew them but got

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

2013-01-03 Thread Emmanuel Bernard
On Thu 2013-01-03 18:19, Ales Justin wrote: > I think anything handled by not-Lucene is wrong. > >>> > >>> I'm afraid Lucene won't do it, so we have no option. It's definitely > >>> not designed to do this: even a custom Collector can't return more > >>> results than Documents in its segment,

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

2013-01-03 Thread Emmanuel Bernard
On Thu 2013-01-03 17:59, Ales Justin wrote: > >> I think anything handled by not-Lucene is wrong. > > > > I'm afraid Lucene won't do it, so we have no option. It's definitely > > not designed to do this: even a custom Collector can't return more > > results than Documents in its segment, as all re

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