Re: [hibernate-dev] OGM: CheckStyle and imports due to JavaDoc comments

2013-07-31 Thread Emmanuel Bernard
For the record, I side with Gunnar in relaxing this. I actually did not see this thread and opened a issue for it this very morning. In most situations we reference classes local to the module via {@link} and the fully qualified class name is very annoying and very long. On 31 juil. 2013, at 09

Re: [hibernate-dev] OGM: CheckStyle and imports due to JavaDoc comments

2013-07-31 Thread Emmanuel Bernard
On 31 juil. 2013, at 13:14, Hardy Ferentschik wrote: > > On 31 Jan 2013, at 10:41 AM, Gunnar Morling wrote: > >> Personally I prefer to include a class via fully qualified name if it is >> only used in the javadocs. >> I think the readability does not suffer too much and adding an actual impo

Re: [hibernate-dev] OGM: CheckStyle and imports due to JavaDoc comments

2013-08-01 Thread Emmanuel Bernard
On Thu 2013-08-01 11:41, Hardy Ferentschik wrote: > Why? The few occasions where it happens a fully qualified class name does not > hurt. > It is not enough that it is considered bad practise and even Checkstyle for > that > reason does not allow it in the UnusedImports check? I actually do fi

Re: [hibernate-dev] unit test PSA

2013-08-06 Thread Emmanuel Bernard
What's PSA? Pakistan Society of Anaesthesiologists? http://www.acronymfinder.com/PSA.html Emmanuel On Mon 2013-08-05 16:49, Brett Meyer wrote: > A friendly PSA regarding unit tests... > > I spent the afternoon cleaning up tests that were failing in our matrix CI > job. There were lots of failu

Re: [hibernate-dev] [Search] Why is global @AnalyzerDefs scanning limited to @Entity?

2013-08-21 Thread Emmanuel Bernard
To me the real answer is to the programmatic API and add a programmatic mapping factory to your configuration. See Example 4.28. Use a mapping factory in http://docs.jboss.org/hibernate/search/4.4/reference/en-US/html_single/#hsearch-mapping-programmaticapi On Thu 2013-06-20 18:22, Guillaume Smet

Re: [hibernate-dev] HSEARCH - Different analyzers for Indexing and Querying

2013-08-21 Thread Emmanuel Bernard
It looks like an interesting idea especially as it keep the simple use case simple (ie simply not defining an queryAnalyzer. Can you explain to me why you would need a different analyzer for a wildcard query? My brain is still tanning on the beach. Brainstorming here we could do the following @A

Re: [hibernate-dev] HSEARCH - Different analyzers for Indexing and Querying

2013-08-22 Thread Emmanuel Bernard
On Thu 2013-08-22 13:40, Guillaume Smet wrote: > Hi Emmanuel, > > On Wed, Aug 21, 2013 at 5:20 PM, Emmanuel Bernard > wrote: > > Can you explain to me why you would need a different analyzer for a > > wildcard query? My brain is still tanning on the beach. >

[hibernate-dev] [HSEARCH] Using two level queries to fight stop word disease

2013-08-26 Thread Emmanuel Bernard
The elasticsearch guys have done something quite smart http://www.elasticsearch.org/blog/stop-stopping-stop-words-a-look-at-common-terms-query/ Basically combine a classic query with a query with the stop words. And stop words are defined by their frequency. Anyone want to implement something

Re: [hibernate-dev] [Parser] Prefixes used for log messages

2013-08-27 Thread Emmanuel Bernard
My initial reaction was to go for 1. but I forgot that the parser is now reused by ISPN. I'd go for 2. then. Emmanuel On Tue 2013-08-27 11:33, Gunnar Morling wrote: > Hi all, > > Emmanuel and I are wondering which prefix should be used for log messages > created by the parser component ("project

Re: [hibernate-dev] JPA API jar artifacts

2013-08-27 Thread Emmanuel Bernard
+1 to have a suffix not related tot he draft. Like you I have pushed spec jars that did not reflect eh state of a draft necessarily. BTW, why retrofit that scheme? Why not just apply it for 2.1? Emmanuel On Tue 2013-08-27 9:57, Steve Ebersole wrote: > I am contemplating duplicating[1] our exist

Re: [hibernate-dev] JPA API jar artifacts

2013-08-27 Thread Emmanuel Bernard
On Tue 2013-08-27 10:22, Steve Ebersole wrote: > On Tue 27 Aug 2013 10:16:38 AM CDT, Emmanuel Bernard wrote: > >+1 to have a suffix not related tot he draft. Like you I have pushed > >spec jars that did not reflect eh state of a draft necessarily. > > > >BTW, why retrofi

Re: [hibernate-dev] JPA API jar artifacts

2013-08-27 Thread Emmanuel Bernard
Technically the spec could go in what is called maintenance mode. In which case the spec lead could use micro or some prefix like M1. But we don't know if that will happen for JPA nor which one will be chosen. Emmanuel On Tue 2013-08-27 10:55, Steve Ebersole wrote: > I don't ever foresee that hap

Re: [hibernate-dev] [OGM] Dropping "hibernate-ogm" prefix from folder names

2013-08-29 Thread Emmanuel Bernard
Yes after 208 is in seems the best time. Don't worry too much about the other backend PRs,t hey are obsolete I suppose but I don't want to lose the work entirely. On Thu 2013-08-29 10:14, Gunnar Morling wrote: > Hi, > > I'd like to remove the prefix "hibernate-ogm" from the folder names of the > O

Re: [hibernate-dev] hiberate-commons-annotations and locating annotations

2013-08-29 Thread Emmanuel Bernard
On Thu 2013-08-29 14:22, Steve Ebersole wrote: > Given an XProperty, is there a way to ask for annotations which are > defined only locally on that declared property (not on any super classes)? I believe that is what XProperty will give you. The list of XProperty of a given XClass is computed fro

Re: [hibernate-dev] hiberate-commons-annotations and locating annotations

2013-08-30 Thread Emmanuel Bernard
W is it possible to have the illegal case by mean of mixing XML and annotation. ie you have the @Convert on the property and the disable facility at the class level in XML. Does the same rule apply? Because for sure the XML and the annotation are treated equally by commons annotation. > >

Re: [hibernate-dev] hiberate-commons-annotations and locating annotations

2013-08-30 Thread Emmanuel Bernard
On Fri 2013-08-30 6:27, Steve Ebersole wrote: > > On Fri 30 Aug 2013 06:05:37 AM CDT, Emmanuel Bernard wrote: > >> > >> > >>2) The 'declaringClassName' passed in to SimpleValueBinder#setType > >>is Sub. So maybe we can leverage that.

Re: [hibernate-dev] hiberate-commons-annotations and locating annotations

2013-08-30 Thread Emmanuel Bernard
one use case to another (basics, > composites, plurals). > > > On Fri 30 Aug 2013 07:47:36 AM CDT, Emmanuel Bernard wrote: > >On Fri 2013-08-30 6:27, Steve Ebersole wrote: > >> > >>On Fri 30 Aug 2013 06:05:37 AM CDT, Emmanuel Bernard wrote: > >

[hibernate-dev] Required improvements for Infinispan's query engine

2013-08-31 Thread Emmanuel Bernard
Adrian found a few problematic limitations in Hibernate Search during its integration of the HQL query parser and the Hibernate Search back end. Composite bridge:: https://hibernate.atlassian.net/browse/HSEARCH-1397 Injection of services into a FieldBridge:: https://hibernate.atlassian.net/browse

Re: [hibernate-dev] [Validator] Applying constraints to property objects

2013-09-03 Thread Emmanuel Bernard
Something like c makes sense. It similar to the notion of converter in JPA. But why not the following style of interfaces interface Convert { To convert(From); } On Tue 2013-09-03 15:58, Gunnar Morling wrote: > Hi, > > Yesterday George Gastaldi from the Forge team approached me

[hibernate-dev] Fwd: Re: [Validator] Applying constraints to property objects

2013-09-03 Thread Emmanuel Bernard
___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] hiberate-commons-annotations and locating annotations

2013-09-03 Thread Emmanuel Bernard
On Tue 2013-09-03 17:22, Steve Ebersole wrote: > 2.a) It seems like there are times when > org.hibernate.cfg.AbstractPropertyHolder#parent would be useful for > what I need to do. But there appears to be times when this is null. > For entity mappings (ClassPropertyHolder) thats fine. But for the

Re: [hibernate-dev] [Validator] Applying constraints to property objects

2013-09-04 Thread Emmanuel Bernard
On Wed 2013-09-04 8:27, Gunnar Morling wrote: > 2013/9/3 Emmanuel Bernard > > > Something like c makes sense. > > > > Ok. > > > > It similar to the notion of converter in JPA. > > > > But why not the following style of interfaces > > &

Re: [hibernate-dev] [Validator] Applying constraints to property objects

2013-09-04 Thread Emmanuel Bernard
On Wed 2013-09-04 9:26, Gunnar Morling wrote: > 2013/9/4 Emmanuel Bernard > > > On Wed 2013-09-04 8:27, Gunnar Morling wrote: > > > 2013/9/3 Emmanuel Bernard > > > > > > > Something like c makes sense. > > > > > > > > > &

Re: [hibernate-dev] hiberate-commons-annotations and locating annotations

2013-09-07 Thread Emmanuel Bernard
h. >>>>>>> >>>>>>> Now granted there are a few different ways to skin this cat, but the >>>>>>> plan I had was to normalize these all on the root of the path. So >>>>>>> here, both of the

Re: [hibernate-dev] [HSEARCH] Using two level queries to fight stop word disease

2013-09-17 Thread Emmanuel Bernard
; On 26 Jan 2013, at 5:26 PM, Emmanuel Bernard wrote: > > > The elasticsearch guys have done something quite smart > > > > http://www.elasticsearch.org/blog/stop-stopping-stop-words-a-look-at-common-terms-query/ > > > > Basically combine a classic query with a

Re: [hibernate-dev] [HV] Extending ParameterNameProvider contract for other element types

2013-09-19 Thread Emmanuel Bernard
It seems that what this user really needs is a way to convert the Set into another format entirely, JSON in this case. I wonder if we could find a more generic approach than just the ability to change properties names. On 19 sept. 2013, at 09:05, Gunnar Morling wrote: > Hi, > > On SO [1], a

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

2013-09-24 Thread Emmanuel Bernard
I am still stuck on that one. I cannot import Hibernate ORM in IntelliJ IDEA :( On 17 mai 2013, at 03:28, Emmanuel Bernard wrote: > yes the projects themselves can use JDK 7. > > On Fri 2013-05-17 11:59, Gunnar Morling wrote: >> Have you registered a JDK 7 under "Platfor

Re: [hibernate-dev] [HV] Extending ParameterNameProvider contract for other element types

2013-10-02 Thread Emmanuel Bernard
Resteasy's conversion would take over from there. > > > 2013/9/19 Hardy Ferentschik > > > > > On 19 Jan 2013, at 9:44 AM, Emmanuel Bernard > > wrote: > > > > > It seems that what this user really needs is a way to convert the > > Set into ano

Re: [hibernate-dev] [OGM] Hibernate OGM @ Devoxx

2013-10-02 Thread Emmanuel Bernard
Nice :) On Mon 2013-09-09 15:38, Guillaume SCHEIBEL wrote: > Hello, > > After SoftShake (and few JUGs), I'm proud (and kind of exited) to announce > my Tool In Action titled "a hint of NoSQL into my Java EE" has been > approved. > > See you there :) > Guillaume >

Re: [hibernate-dev] Should we deprecate @Similarity

2013-10-02 Thread Emmanuel Bernard
Yes that was a mistake. It was done as you say to make things simpler for the user but it has created headaches for us since then. On Thu 2013-09-19 16:15, Sanne Grinovero wrote: > Discussing about some hibernate-search-engine complexities with Hardy > on IRC, we came to the agreement that the way

Re: [hibernate-dev] [Search] Dynamic Sharding the second

2013-10-02 Thread Emmanuel Bernard
Turning the problem upside down, I wonder if IndexShardingStrategy should be deprecated and have SharIdentifierProvider as the API a user would implement. It makes for simpler things. What would we lose feature wise? Emmanuel On Fri 2013-09-20 17:30, Hardy Ferentschik wrote: > Hi, > > here comes

Re: [hibernate-dev] [OGM] Hibernate OGM @ Devoxx

2013-10-02 Thread Emmanuel Bernard
) there :) > Guillaume > > PS: if someone could dedicate ~1h within the month for a dry-run session, I > would appreciate it. > > Guillaume > > > 2013/10/2 Emmanuel Bernard > > > Nice :) > > > > On Mon 2013-09-09 15:38, Guillaume SCHEIBEL wrote: &

Re: [hibernate-dev] [Search] Dynamic Sharding the second

2013-10-02 Thread Emmanuel Bernard
On Wed 2013-10-02 15:19, Hardy Ferentschik wrote: > > On 2 Jan 2013, at 3:06 PM, Emmanuel Bernard wrote: > > > Turning the problem upside down, I wonder if IndexShardingStrategy > > should be deprecated and have SharIdentifierProvider as the API a user > > would impl

Re: [hibernate-dev] [Search] Dynamic sharding configuration

2013-10-02 Thread Emmanuel Bernard
On Tue 2013-09-24 10:51, Hardy Ferentschik wrote: > String[] getShardIdentifiers(Class entity, Serializable id, String > idInString); > > all together. Here is my reasoning. AFAIU, the method is there for the > deletion of > documents. In this case we don't have the Lucene document nor the entit

Re: [hibernate-dev] [Search] Dynamic sharding configuration

2013-10-03 Thread Emmanuel Bernard
What does Iterable give you over String[]? On Mon 2013-09-23 23:04, Sanne Grinovero wrote: > Correct me if I'm wrong, but trying to synthesize this discussion I > think that we're fundamentally agreeing that dynamic sharding is a > "better replacement" for static sharding. > Still, let's keep in m

Re: [hibernate-dev] [Search] Dynamic sharding configuration

2013-10-03 Thread Emmanuel Bernard
On Tue 2013-09-24 14:30, Sanne Grinovero wrote: > On 24 September 2013 14:12, Hardy Ferentschik wrote: > > 2) remove 'String[] getShardIdentifiers(Class entity, Serializable id, > > String idInString)' from ShardIdentifierProvider > > +1 we're automatically assuming a deletion needs to be routed

Re: [hibernate-dev] Nice posts on Hibernate Search

2013-10-03 Thread Emmanuel Bernard
You should blog and tweet them. On Tue 2013-10-01 11:51, Sanne Grinovero wrote: > Found this nice blog post: > > http://timontech.net/2013/08/27/adding-the-power-of-search-to-your-hibernate-app-the-easy-way/ > > He makes a good point on when it's useful to use. > > there also is a nice follow-u

Re: [hibernate-dev] checkNullability when deleting an entity

2013-10-03 Thread Emmanuel Bernard
On Mon 2013-09-23 17:07, Steve Ebersole wrote: > Anyone have compelling reasons to continue to call > org.hibernate.engine.internal.Nullability#checkNullability when deleting > an entity? An entity being deleted can be validated by Bean Validation. But from what I understand you would not call c

Re: [hibernate-dev] Nice posts on Hibernate Search

2013-10-03 Thread Emmanuel Bernard
> BTW I just received this email some minutes ago, but it says "sent 22 hours > ago" Pretty good for i18l delivery. Fedex can be faster but not all the time. ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/li

Re: [hibernate-dev] [Search] Dynamic sharding configuration

2013-10-08 Thread Emmanuel Bernard
out of it. Emmanuel On Mon 2013-10-07 16:03, Sanne Grinovero wrote: > On 2 October 2013 14:34, Emmanuel Bernard wrote: > > On Tue 2013-09-24 14:30, Sanne Grinovero wrote: > >> On 24 September 2013 14:12, Hardy Ferentschik wrote: > >> > 2) remove 'String[] g

Re: [hibernate-dev] [OGM] Requiring Java 7?

2013-10-09 Thread Emmanuel Bernard
No strong opinion. To me Java 7 is of little value. Java 8 on the other hand... BTW, will we have trouble with servers that do expect Java 6? I suspect WF is already on 7 so we don't have that problem on that side. Emmanuel On Wed 2013-10-09 13:55, Gunnar Morling wrote: > Hi, > > In the context

[hibernate-dev] [HV] HV and RESTEasy integration

2013-10-14 Thread Emmanuel Bernard
I was once again working on the demo showing Bean Validation and its integration inside Java EE 7. When you put constraints on the method parameter of a JAX-RS call, you get a nice rendering of the error on the client side (basically the HTTP entity returns a JSON representation of the errors). Bu

[hibernate-dev] [OGM] Neo4J discussions

2013-10-17 Thread Emmanuel Bernard
Davide and I had an interesting discussion on OxM and Neo4J with Nicolas. We also brushed on the JCA support and lack of Neo4J interest in it. This is a dump of the conversation and a way to continue the conversation in the open. ## JCA support Provided outside of Neo4J's team help. Original aut

[hibernate-dev] [OGM] Option identity

2013-10-21 Thread Emmanuel Bernard
Gunnar has I had a long discussion and disagreement on the behavior of Option in Hibernate OGM that we could not resolve. We would like your feedback. I did design Option to represent three key concepts: - an option family - for example named query - an option per se - for example the combinatio

Re: [hibernate-dev] [OGM] Option identity

2013-10-22 Thread Emmanuel Bernard
On Mon 2013-10-21 17:17, Gunnar Morling wrote: > 2013/10/21 Emmanuel Bernard > So he changed the implementation of Option / UniqueOption to behave like I > > previously explained for generic options but to properly return > > ShowSql.equals(ShowSql.FALSE) == false. To

[hibernate-dev] Thinking about Forge 2 plugins

2013-10-24 Thread Emmanuel Bernard
We probably should think about what it would mean to help people get started with our projects using Forge. The Eclipse integration looks very impressive and very much how I wish I could work to add layers. I'll add it to the team meeting agenda. Emmanuel Date: Mon, 21 Oct 2013 18:27:12 -0400 (E

Re: [hibernate-dev] [OGM] Supporting Cassandra

2013-11-04 Thread Emmanuel Bernard
Khan did the initial work but Cassandra client APIs were in a big flux when he worked on it. That may have stabilized over the latest CQL. I am CCing Khan. I think he is still on Earth somewhere. Emmanuel On Mon 2013-11-04 16:17, Gunnar Morling wrote: > Hi, > > There is a pull request for adding

[hibernate-dev] rsync error for ORM 4.2's docs?

2013-11-08 Thread Emmanuel Bernard
http://docs.jboss.org/hibernate/orm/4.2/ contains the docs, the API but also the whole project structure like buildSrc, gradle directory etc. Is that an rsync glitch or something intentional? Emmanuel ___ hibernate-dev mailing list hibernate-dev@lists.j

Re: [hibernate-dev] [OGM] RowKey vs. EntityKey

2013-11-11 Thread Emmanuel Bernard
As we discussed on Irc but for posterity. EntityKey represents what you need to reach an entity. It contains both the actual id information and the metadata necessary to do the query. Likewise, we have AssociationKey that does represent an association navigation. RowKey is used to represent two t

[hibernate-dev] [Search] Facet counts

2013-11-26 Thread Emmanuel Bernard
We had the debate in the past but I do agree with the second point of this user http://outbottle.com/hibernate-search-multivalue-facet-counts/ Very confusing when I am in this situation. ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https:

[hibernate-dev] [OGM] Build time

2013-11-28 Thread Emmanuel Bernard
My machine is in a poor state. But still, the default mvn install took more than 7 minutes. For info the minimal build takes 3:20 (4:30 with the integration tests). We have added a few mechanisms over time on OGM: * modules depending on an external DB are skipped if SOMEDB_HOSTNAME is not set *

Re: [hibernate-dev] [OGM] Build time

2013-11-28 Thread Emmanuel Bernard
On Thu 2013-11-28 10:45, Gunnar Morling wrote: > 2013/11/28 Emmanuel Bernard > > a. Provide a -Dminimal flag to run in case 1. > > > > You still would have to specify the backend you want to build, right? How > would such flag be used then? Not that would be to build

Re: [hibernate-dev] [OGM] Build time

2013-11-28 Thread Emmanuel Bernard
On Thu 2013-11-28 12:55, Gunnar Morling wrote: > 2013/11/28 Gunnar Morling > > > > > > > > > 2013/11/28 Hardy Ferentschik > > > >> > >> > How about > >> > > >> > d. Use an alias for all skip options: > >> > > >> > export mvnFast = "mvn -DskipITs -DskipDocs -DskipDistro” > >> > >> instead of usin

Re: [hibernate-dev] [OGM] Precedence of options specified on different levels

2013-12-03 Thread Emmanuel Bernard
I am quite uncomfortable with that approach. Here is what I propose instead (we did discuss that in the past a bit). Rules by decreasing precedence: property | association > class > super class > global (*) question: what about overridden properties For a given level mentioned above, API > ann

Re: [hibernate-dev] [OGM] Precedence of options specified on different levels

2013-12-03 Thread Emmanuel Bernard
On Tue 2013-12-03 17:48, Gunnar Morling wrote: > Thanks, Davide. > > 2013/12/3 Davide D'Alto > > > It looks good to me. > > > > Ok. > > > I first didn't like that but I came to think it makes sense, if the > > property name conveys that semantics, e.g. "defaultAssociationStorageMode". > > > >

Re: [hibernate-dev] [OGM] Distinguishing embedded collections and associations in document stores

2013-12-03 Thread Emmanuel Bernard
We probably need to revisit what we really want to test and adjust the test accordingly. AFAIR, these tests felt weak anyways. On Fri 2013-11-29 11:49, Gunnar Morling wrote: > Hi, > > I'm working on support for embedded associations in CouchDB [1]. Checking > how this is mapped by the MongoDB dia

Re: [hibernate-dev] [OGM] Precedence of options specified on different levels

2013-12-04 Thread Emmanuel Bernard
On Wed 2013-12-04 10:33, Gunnar Morling wrote: > 2013/12/3 Emmanuel Bernard > > > On Tue 2013-12-03 17:48, Gunnar Morling wrote: > > > Thanks, Davide. > > > > > > 2013/12/3 Davide D'Alto > > > > > > > It looks good to me. > >

[hibernate-dev] Hibernate has a new website

2013-12-05 Thread Emmanuel Bernard
http://hibernate.org has been completely revamped. The entire team has been working on it for a long time. I am personally very happy to see this puppy out. Our goals were: * to help newcomers understand what each Hibernate project is about and why it matters * to help regular / advanced users

Re: [hibernate-dev] ArrayIndexOutOfBoundsException in ReflectionHelper.parametersResolveToSameTypes

2013-12-11 Thread Emmanuel Bernard
https://hibernate.atlassian.net/browse/HV-818 I am a bit uncertain of the case and frequency when that happens. If WildFly does plan to stay on the 5.0.x series, we probably want to fix it in a 5.0.2. Same for the classloader leak I imagine. Emmanuel On Wed 2013-12-11 11:23, Ales Justin wrote: >

Re: [hibernate-dev] Create OSGi integration test project for all of Hibernate?

2013-12-12 Thread Emmanuel Bernard
This sounds like a good idea. You will hit the more general problem of the compatibility matrix and snapshot against snapshot issue we need to address to avoid the micro version incompatibilities that have hit Search and ORM recently. > On 12 déc. 2013, at 19:29, Brett Meyer wrote: > > ORM c

Re: [hibernate-dev] [OGM] Store-specific constants

2013-12-13 Thread Emmanuel Bernard
I did not see that thread when I opened the constant naming unification. I am a bit skeptical that option should be used for global settings like host and co but let's try and see where that leads us. On 11 déc. 2013, at 18:36, "Davide D'Alto" wrote: >> Our question is, should now that we ha

Re: [hibernate-dev] [OGM] Precedence of options specified on different levels

2013-12-13 Thread Emmanuel Bernard
So currently in the pull request, we now have the following 1. property > entity > global 2. for each level in 1., programmatic API beats annotation These are simple rules to understand and all it good. Now Gunnar tried to handle class inheritance, ie superclasses and overridden methods. And we

Re: [hibernate-dev] [Search] Spatial still experimental

2013-12-15 Thread Emmanuel Bernard
When I used it, I was mostly fine with it. I had only a few remarks: - we should add the support for miles. Only having kilometers was in retrospect wrong. - spatial as a name is a bit fuzzy, should we change it? I tend to use geolocation maybe geoquery when I try to explain the notion. - in t

Re: [hibernate-dev] JdbcSession -> DataStoreSession

2013-12-15 Thread Emmanuel Bernard
When I reviewed your work earlier last week, I had the feeling that we would need to replace JdbcSession with something totally different. OGM Loader / Persisters would then use that different contract. The idea of a generic DataStoreSession is attractive. But something I am not clear on is how t

Re: [hibernate-dev] [OGM] Precedence of options specified on different levels

2013-12-15 Thread Emmanuel Bernard
Only the CouchDB provider in the PR so far. But the idea is to move all to that model. On Fri 2013-12-13 16:35, Guillaume SCHEIBEL wrote: > Hi guys, > > That sounds nice. Are association storage strategies already using this new > feature ? > > > Guillaume > > &g

Re: [hibernate-dev] [OGM] Precedence of options specified on different levels

2013-12-16 Thread Emmanuel Bernard
On Mon 2013-12-16 11:06, Gunnar Morling wrote: > 2013/12/13 Emmanuel Bernard > > > So currently in the pull request, we now have the following > > > > 1. property > entity > global > > 2. for each level in 1., programmatic API beats annotation > > > &

Re: [hibernate-dev] [OGM] Precedence of options specified on different levels

2013-12-16 Thread Emmanuel Bernard
the shared contracts, although increasing the complexity a bit by > having two options for MongoDB. > > --Gunnar > > > > > > > > > > > > > 2013/12/16 Emmanuel Bernard > > > Only the CouchDB provider in the PR so far. But th

Re: [hibernate-dev] Released Hibernate Search 4.4.2.Final and 4.5.0.Alpha2

2013-12-16 Thread Emmanuel Bernard
Hum, what drove this? Last time I chatted with Jason, the idea was to not have WF integrate Hibernate Search in the base distro. What is the consumer of the base technology? Infinispan in WF does not require HSearch for the base clustering features right? Emmanuel On Mon 2013-12-16 11:19, Ales Ju

Re: [hibernate-dev] JdbcSession -> DataStoreSession

2013-12-16 Thread Emmanuel Bernard
isters/loaders and DataStoreSession types) in tandem. > > Keep in mind that the idea here is simply to centralize the binding of > connection+transaction in various transaction scenarios and encapsulate > handling of "flow" between them. > > > > On Mon 16 Dec 20

[hibernate-dev] Fwd: Re: [OGM] Precedence of options specified on different levels

2013-12-16 Thread Emmanuel Bernard
___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] [OGM] Precedence of options specified on different levels

2013-12-16 Thread Emmanuel Bernard
Yes, verbs might not work well esp since JPA does not use that style. I kinda liked the vibe :) On Mon 2013-12-16 17:24, Gunnar Morling wrote: > 2013/12/16 Emmanuel Bernard > > > I think in this specific case it does make sense to have a global > > setting and a specific one

Re: [hibernate-dev] [Search] Spatial still experimental

2013-12-19 Thread Emmanuel Bernard
https://hibernate.atlassian.net/browse/HSEARCH-1469 https://hibernate.atlassian.net/browse/HSEARCH-1470 On Thu 2013-12-19 12:36, Hardy Ferentschik wrote: > > On 16 Jan 2013, at 08:32, Emmanuel Bernard wrote: > > > - spatial as a name is a bit fuzzy, should we change it

Re: [hibernate-dev] SessionEventsListener feature (HHH-8654)

2013-12-23 Thread Emmanuel Bernard
Sanne, I wonder if that could be used as a way to get rid of the weak identity hash map we have in Hibernate Search. (I think we got rid of all ThreadLocal already). Steve, do you think I could (ab)use these as Session level cache? I think OGM could benefit from such feature in a couple of situati

Re: [hibernate-dev] Hibernate Search: Transactions timeout on MassIndexer

2013-12-23 Thread Emmanuel Bernard
Sorry late here. OptionallyWrapInJTATransaction is not about timeout. It's about explicitly starting a JTA transaction like a CMT entity bean would to so that Hibernate ORM does not complain. On Mon 2013-11-11 17:29, Sanne Grinovero wrote: > Hi Emmanuel, > in case you get very bored at Devoxx :) >

Re: [hibernate-dev] SessionEventsListener feature (HHH-8654)

2013-12-23 Thread Emmanuel Bernard
On Mon 2013-12-23 11:37, Gunnar Morling wrote: > Am 23.12.2013 10:55 schrieb "Emmanuel Bernard" : > > > > Sanne, I wonder if that could be used as a way to get rid of the weak > > identity hash map we have in Hibernate Search. (I think we got rid of > > all Th

Re: [hibernate-dev] Hibernate Search: Transactions timeout on MassIndexer

2013-12-23 Thread Emmanuel Bernard
ic transaction; we should probably add a new option to > the MassIndexer API to have the user suggest a > very-high-but-reasonable timeout? > > Sanne > > On 23 December 2013 10:09, Emmanuel Bernard wrote: > > Sorry late here. > > OptionallyWrapInJTATransaction is not

Re: [hibernate-dev] [OGM] Behavior of GenerationType.IDENTITY with OGM

2014-01-20 Thread Emmanuel Bernard
The problem is that in JPA, IDENTITY returns a long, not a UUID. On Mon 2014-01-20 12:23, Gunnar Morling wrote: > Hi, > > While reviewing the PR for batch operations in OGM [1], I took some time to > better understand OGM's approaches for id generation. > > Now I'm wondering about how Generation

Re: [hibernate-dev] merge on new entities

2014-01-27 Thread Emmanuel Bernard
f such custom extensions? > Requires quite a different Dialect API. > > Sanne > > On 27 January 2014 09:07, Emmanuel Bernard wrote: > > If the id is assigned, we do a select first. Not super efficient but > > that's about the only thing you can do.

[hibernate-dev] Hibernate Search 4.5.0.CR1 on staging and not in prod

2014-01-27 Thread Emmanuel Bernard
On the website, Staging has a commit related to HSearch's release. That commit is not on production. Is that expected? ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

[hibernate-dev] OGM depending on ORM 4.3

2014-01-27 Thread Emmanuel Bernard
To follow up on the PR migrating OGM to ORM 4.3. I think it is the right thing to do but I wonder whether we should do a tag / release of Hibernate OGM before that. So that people still using the JPA 2.0 series have a final version and a point for fork. What has happened between the latest OGM ver

Re: [hibernate-dev] [OGM] When is AssociationKey serialized?

2014-02-03 Thread Emmanuel Bernard
Hum, with the fact that this object now points to metadata, I wonder if we should force EhCache, Map and Infinispan to have their own version of EntityKey / RowKey and AssociationKey (or an appropriate externalizer). Emmanuel On Mon 2014-02-03 11:56, Gunnar Morling wrote: > Hi, > > I'm wondering

Re: [hibernate-dev] OGM depending on ORM 4.3

2014-02-03 Thread Emmanuel Bernard
On Sat 2014-02-01 18:47, Sanne Grinovero wrote: > On 27 January 2014 10:32, Gunnar Morling wrote: > > Looking at the issues which have been addressed or are work in progress > > since the last release [1] I don't think we need a tag. > > +1 especially as I understand JPA 2.1 is backwards compatib

Re: [hibernate-dev] OGM depending on ORM 4.3

2014-02-03 Thread Emmanuel Bernard
On Mon 2014-02-03 14:58, Sanne Grinovero wrote: > On 3 February 2014 13:34, Emmanuel Bernard wrote: > > On Sat 2014-02-01 18:47, Sanne Grinovero wrote: > >> On 27 January 2014 10:32, Gunnar Morling wrote: > >> > Looking at the issues which have been addressed or are

Re: [hibernate-dev] HSEARCH Discussions on schedule for Hibernate Search 5.0

2014-02-03 Thread Emmanuel Bernard
Resending as I screwed up the Hibernate Dev email. On Mon 2014-02-03 14:28, Emmanuel Bernard wrote: > Hello Hardy, Sanne and all, > > I think it's time to discuss the schedule we want for Hibernate Search > 5. While we don't usually use time boxing, it's still usef

Re: [hibernate-dev] HSEARCH Discussions on schedule for Hibernate Search 5.0

2014-02-03 Thread Emmanuel Bernard
tter.im/hibernate/hibernate-search > >> On 3 February 2014 15:17, Emmanuel Bernard wrote: >> Resending as I screwed up the Hibernate Dev email. >> >>> On Mon 2014-02-03 14:28, Emmanuel Bernard wrote: >>> Hello Hardy, Sanne and all, >>> >>>

Re: [hibernate-dev] Feature Proposal for Hibernate Search

2014-02-03 Thread Emmanuel Bernard
Hi Martin, That's interesting. I have a couple of questions for you. What is the notion of profile and when would you use it? When do you need and use sub query ids? The issue you had was to map getters to query parameters in an easier way than currently possible, correct? It reminds me a litt

Re: [hibernate-dev] [OGM] When is AssociationKey serialized?

2014-02-03 Thread Emmanuel Bernard
> On 3 févr. 2014, at 15:21, Sanne Grinovero wrote: > >> On 3 February 2014 13:33, Emmanuel Bernard wrote: >> Hum, with the fact that this object now points to metadata, I wonder if >> we should force EhCache, Map and Infinispan to have their own version of &

Re: [hibernate-dev] Feature Proposal for Hibernate Search

2014-02-03 Thread Emmanuel Bernard
pdate the DSL to > > accept the parameters holder and have them injected. > I think that would be possible, but then you would still have to handle the > query nesting and such by hand and that code would be more complicated to use > (but easier to debug, tbh). > > I wonder if literall

Re: [hibernate-dev] Feature Proposal for Hibernate Search

2014-02-03 Thread Emmanuel Bernard
such by hand and that code would be more complicated to use > (but easier to debug, tbh). What do you mean by query nesting by hand? And how does the annotation approach differs? > > I wonder if literally an Example API would address your use cases ? > What do you mean by that?

Re: [hibernate-dev] HSEARCH Discussions on schedule for Hibernate Search 5.0

2014-02-03 Thread Emmanuel Bernard
Turns out it conflicts with the other Hibernate general meeting on IRC. So we are moving it up 30 mins from 16:00 to 17:00 CET. > On 3 févr. 2014, at 20:58, Emmanuel Bernard wrote: > > This is Tuesday 4 (tomorrow) from 16:30 to 17:30 CET. Everyone's invited :) > > Ps

Re: [hibernate-dev] Feature Proposal for Hibernate Search

2014-02-04 Thread Emmanuel Bernard
On Tue 2014-02-04 4:24, Martin Braun wrote: > /** >* @return a custom sort object or null >*/ > public Sort getSort(); > > > or how to facet, etc... > > > I want for this stuff to move to annotations (maybe) because I don't really > like > the fact that I have to i

Re: [hibernate-dev] API/SPI in 5.0

2014-02-06 Thread Emmanuel Bernard
I have looked at Search and identified the elements that use Configuration and it's access to mapping. During bootstrap via an Integrator, we use Configuration.getProperties() Configuration.getreflectionManager (optional) cfg.getClassMappings() The properties are used to bootstrap Hibernate Sear

Re: [hibernate-dev] API/SPI in 5.0

2014-02-06 Thread Emmanuel Bernard
. We don’t use PersisterFactory but rather override the PersisterClassResolver service. Emmanuel On 06 Feb 2014, at 13:46, Emmanuel Bernard wrote: > I have looked at Search and identified the elements that use > Configuration and it's access to mapping. > > During bootstrap

Re: [hibernate-dev] API/SPI in 5.0

2014-02-06 Thread Emmanuel Bernard
On 06 Feb 2014, at 14:52, Steve Ebersole wrote: > > On Thu, Feb 6, 2014 at 7:01 AM, Emmanuel Bernard > wrote: > For OGM the impact is less but in > Integrator.integrate > we use Configuration to be able to conditionally add a naming strategy > configuration.setNamingS

Re: [hibernate-dev] API/SPI in 5.0

2014-02-06 Thread Emmanuel Bernard
On 06 Feb 2014, at 15:10, Steve Ebersole wrote: > > On Thu, Feb 6, 2014 at 6:46 AM, Emmanuel Bernard > wrote: > > Configuration.getreflectionManager (optional) > > We do not use commons-annotations anymore at all (yaay!). If you need access > to this type of fu

Re: [hibernate-dev] API/SPI in 5.0

2014-02-06 Thread Emmanuel Bernard
On Thu 2014-02-06 21:52, Hardy Ferentschik wrote: > > On 6 Jan 2014, at 15:10, Steve Ebersole wrote: > > > On Thu, Feb 6, 2014 at 6:46 AM, Emmanuel Bernard > > wrote: > > > > Configuration.getreflectionManager (optional) > >> > > > >

Re: [hibernate-dev] API/SPI in 5.0

2014-02-07 Thread Emmanuel Bernard
On Thu 2014-02-06 21:08, Emmanuel Bernard wrote: > > On 06 Feb 2014, at 14:52, Steve Ebersole wrote: > > > > > On Thu, Feb 6, 2014 at 7:01 AM, Emmanuel Bernard > > wrote: > > For OGM the impact is less but in > > Integrator.integrate > > we use Co

[hibernate-dev] Where to host dtd, xsd files?

2014-02-07 Thread Emmanuel Bernard
Simply add the files to hibernate.org's repository. Hardy did it for dtds https://github.com/hibernate/hibernate.org/tree/production/dtd The files will be published. Emmanuel ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jb

Re: [hibernate-dev] [OGM] Public packages of datastore modules

2014-02-10 Thread Emmanuel Bernard
On Mon 2014-02-10 11:50, Gunnar Morling wrote: > Hi, > > One thing I'd like to address before doing the next OGM release is the > structure of public packages in the datastore-specific modules. > > Currently we have the following structure: > > * org.hibernate.ogm.datastore. > * org.hibernate.og

Re: [hibernate-dev] [OGM] When is AssociationKey serialized?

2014-02-13 Thread Emmanuel Bernard
> >> The thing is only the key/value dialects do make use of the keys objects. > >> And even in that case, it might not make sense to actually reuse these > >> objects. For example if the cache name is the table and only the id columns > >> are part of the key. > >> Is that edge case worth this com

  1   2   3   4   5   6   7   8   9   10   >