ScrollableResults and 6.0
by Steve Ebersole
For 6.0 I'd like to also make ScrollableResults parameterized wrt the "row
type". E.g.
ScrollableResults<Person> sr = session.createQuery( ..., Person.class
).scroll();
However that changes the signature of its methods returning a "row"
(currently always defined as Object[]).
How would everyone prefer we handle this? Do I just change the signatures
of the existing methods? Or add new methods?
7 years, 3 months
6.0 - Session#createFilter
by Steve Ebersole
As I have not been hearing hardly any feedback on these 6.0 design
questions I have been trying to start, I'll be doing something different in
this and any additional emails.. I'll state what I propose to do and if
anyone has issue with it they can make a counter proposal. Otherwise I
plan on following through with my proposal.
I plan on removing Session#createFilter. There are numerous reasons why
which I can discuss if anyone is interested in exploring this.
Ultimately I think it makes sense to handle this via Java 8 streams[1]
although I am not sure that needs to happen in 6.0
[1] https://hibernate.atlassian.net/browse/HHH-10962
7 years, 3 months
"Sister projects" need to be compatible with latest Hibernate ORM
by Sanne Grinovero
Hi all,
as you know we've been late in delivering a version of Hibernate
Search version compatible with Hibernate ORM 5.2, this caused many
questions.
Turns out OGM is also late to this club and this is causing some
headaches too: people simply assume that our latest stuff will work
with each other, and I can't blame them for expecting that.
We need to improve on this; I screwed up scheduling on Search, but
looking forward I hope we can improve on this.
So... let's ramp up the tempo for an OGM 5.2 ?
Thanks,
Sanne
7 years, 3 months
Re: [hibernate-dev] CI Jenkins upgraded to version 2.38
by Yoann Rodiere
Thanks! Looking forward to using pipelines :)
It seems PR jobs for Hibernate Search do not trigger anymore, though:
* https://github.com/hibernate/hibernate-search/pull/1273 was submitted
yesterday
* there is no build on http://ci.hibernate.org/view/Pull%20Requests/job/
hibernate-search-PR/ since december 23
* and I tried to restart the build explicitly from the PR, with no luck
It's a bit odd, because the OGM PR job seems to work fine... From what I
can see there hasn't been any particular change on the OGM job.
I can't look at the trigger options on GitHub (I lack the access rights),
but maybe the difference between OGM and Search lies there?
Anyway... I'm going for today, maybe I'll see something obvious tomorrow
morning!
Cheers,
Yoann Rodière <yoann(a)hibernate.org>
Hibernate NoORM Team
On 3 January 2017 at 18:22, Yoann Rodiere <yrodiere(a)redhat.com> wrote:
> Thanks! Looking forward to using pipelines :)
>
> It seems PR jobs for Hibernate Search do not trigger anymore, though:
>
> * https://github.com/hibernate/hibernate-search/pull/1273 was submitted
> yesterday
> * there is no build on http://ci.hibernate.org/view/Pull%20Requests/job/
> hibernate-search-PR/ since december 23
> * and I tried to restart the build explicitly from the PR, with no luck
>
> It's a bit odd, because the OGM PR job seems to work fine... From what I
> can see there hasn't been any particular change on the OGM job.
>
> I can't look at the trigger options on GitHub (I lack the access rights),
> but maybe the difference between OGM and Search lies there?
>
> Anyway... I'm going for today, maybe I'll see something obvious tomorrow
> morning!
>
> Cheers,
>
> Yoann Rodière <yrodiere(a)redhat.com>
> Software Engineer
> Red Hat / Hibernate NoORM Team
>
> On 3 January 2017 at 13:31, Davide D'Alto <davide(a)hibernate.org> wrote:
>
>> Thanks for the feedback,
>>
>> header and footer should be fine now.
>>
>> Thanks,
>> Davide
>>
>> On Thu, Dec 29, 2016 at 11:37 PM, Sanne Grinovero <sanne(a)hibernate.org>
>> wrote:
>> > Thanks Davide!
>> > The builds seems to work just fine, the only minor defect I've noticed
>> > is with the stylesheet doing some strange things when scrolling down:
>> > the breadcrumbs will "float" down as well. Definitely not urgent,
>> > great to have all updates!
>> >
>> > Thanks,
>> > Sanne
>> >
>> >
>> > On 28 December 2016 at 01:04, Davide D'Alto <davide(a)hibernate.org>
>> wrote:
>> >> Hi,
>> >> I hope you all had great holidays.
>> >>
>> >> I've upgraded our Jenkin on CI to version 2.38.
>> >>
>> >> As far as i can tell everything seems all right, but if you experience
>> >> some unusual problems,
>> >> please, let me know.
>> >>
>> >>
>> >> Cheers,
>> >> Davide
>> >> _______________________________________________
>> >> hibernate-dev mailing list
>> >> hibernate-dev(a)lists.jboss.org
>> >> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>> _______________________________________________
>> hibernate-dev mailing list
>> hibernate-dev(a)lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>>
>
>
7 years, 3 months
Hibernate OGM 5.1 Beta3 and 5.0.4 released
by Davide D'Alto
Hello everybody, holidays are over and we decided to start back with a
small release.
Hibernate OGM 5.1 Beta3 and a new 5.0 maintainance releases are now available.
In these releases we fixed some issues around sequence generation and
queries on entities using the single table per class inheritance
strategy. An update is highly recommended.
You can find all the details in the blog post [1].
Thanks,
Davide
[1] http://in.relation.to/2017/01/05/hibernate-ogm-5-beta3-and-5/
7 years, 3 months
[SEARCH] Query-only analyzers with Elasticsearch - new annotation?
by Yoann Rodiere
Hello team,
I'm currently working on HSEARCH-2534, "Query-only analyzer definitions are
never added to the index settings with Elasticsearch".
This issue is about using analyzers only when querying with Elasticsearch.
It is already possible with Lucene, but not in Elasticsearch, because we
assume that any analyzer definition that is not referenced by a @Analyzer
annotation is a Lucene analyzer [1].
To be precise, the exact place where query-only analyzers are used is in
EntityContext.overridesForField [2], and the overrides are leveraged even
with Elasticsearch, for instance in ConnectedMultiFieldsTermQueryBuilder
[3].
I can see two solutions to the issue:
1. Make all analyzer definitions available for all indexing services.
2. Allow users to define, for each entity, which analyzer definitions
will be necessary when querying, even though the definitions are not used
when indexing.
Solution 1 seems quite hard to implement correctly.
First we'd have to have a different namespace for each indexing service,
but I've already implemented that much.
Second, some analyzer definitions are only valid for one indexing service,
and not for the other.
For instance, analyzer definitions using ElasticsearchTokenFilterFactory
are specific to Elasticsearch. And Analyzer definitions using
the WhitespaceTokenizerFactory with the "rule" parameter are only valid
with embedded Lucene. And so on. To sum up, I'm not sure we can do
something smart.
Solution 2 is easier to implement, but requires to add a bit of API: the
way for users to declare that a given analyzer definition is to be
available when querying a given entity. I would add type-level
@QueryAnalyzer(definition = "foo") and @QueryAnalyzers annotation.
I know nobody wants to add new annotations in a minor, but right now that
seems to be the only workable solution.
What do you think?
[1]
https://github.com/hibernate/hibernate-search/blob/1847bd222128395056cdf6...
[2]
https://github.com/hibernate/hibernate-search/blob/1847bd222128395056cdf6...
[3]
https://github.com/hibernate/hibernate-search/blob/1847bd222128395056cdf6...
Yoann Rodière <yoann(a)hibernate.org>
Hibernate NoORM Team
7 years, 3 months
CI Jenkins upgraded to version 2.38
by Davide D'Alto
Hi,
I hope you all had great holidays.
I've upgraded our Jenkin on CI to version 2.38.
As far as i can tell everything seems all right, but if you experience
some unusual problems,
please, let me know.
Cheers,
Davide
7 years, 3 months
6.0 - Query literal rendering
by Steve Ebersole
Currently in 6.0 I have code in place to render query literals as
PreparedStatement parameters, but only outside the SELECT clause. Many DBs
require special handling for parameters defined in the SELECT clause
general requiring to wrap in cast functions calls.
I think it may be beneficial to allow the user to control this via a
setting. Specifically a multi-valued (enum) value with the following
possibility set:
1. NEVER
2. ALWAYS
3. OUTSIDE_SELECT
First, does anyone have an issue with this proposal? Secondly does anyone
see other concerns that should be take into account?
7 years, 3 months