Skip to content

Instantly share code, notes, and snippets.

CouchDB dialect, enhanced query support and more: Hibernate OGM 4.1.0.Beta1 is out

It's my great pleasure to announce the release of Hibernate OGM 4.1.0.Beta1! This version shines with:

  • a new dialect for CouchDB,
  • support for query execution via JPA,
  • a new option API,
  • and much more including a version bump

But wait, hasn't the last released version been 4.0.0.Beta4? That's true indeed, and in case you were wondering, we did not forget to do a final release of the 4.0 line. The reason for the version bump is that Hibernate OGM is now compatible with JPA 2.1 and Hibernate ORM 4.3. To reflect this we thought it'd be a good idea to jump to a new minor version as well.

The release 5.0.0.Alpha2 is now [available on our shiny new website=>http://hibernate.org/search/downloads/]: as the alpha1 release also did, it integrates with Apache Lucene 4.6.1, but now we do it better ;-)

[brush: xml] <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-search-orm</artifactId> <version>5.0.0.Alpha2</version> </dependency>

@emmanuelbernard
emmanuelbernard / Simple Rsync backup
Last active August 29, 2015 13:57 — forked from Sanne/Simple Rsync backup
Support remove servers ; add compress and delete to rsync options
#!/bin/sh
# version 20140401
# Backup script using rsync to create multiple snapshots of the source.
# A little known trick of rsync is to be able to run a three-way comparison,
# so to only transfer the diffs but store a full copy in a new directory,
# while comparing and hard linking to the previous snapshot.
# This allows to make many frequent snapshots at minimal network and storage
# impact.
#
# This version doesn't do any form of rotation: you'll eventually run out of space.
@emmanuelbernard
emmanuelbernard / gist:943902
Created April 27, 2011 08:16 — forked from gbadner/gist:943347
Process for building SessionFactory
Build ServiceRegistry
---------------------
Map config = ...;
A)
ServiceRegistry serviceRegistry =
new ServiceRegistryBuilder( config )
...
Place 1:
Queen: Aslak+Wife
Queen: Lincoln III
Twin, Cot1, Cot2 - To be decided by Dan, ALR, (open slot...Wesley Hayles?)
Place 2:
Queen: Emmanuel
Queen:
@emmanuelbernard
emmanuelbernard / gist:1153877
Created August 18, 2011 11:26
Blog for HSearch 4 Alpha 1
The release cycle of Hibernate Search 4 has begun. Alpha 1 is out. We already have many
things implemented so it's more an Alpha3 than anything else ;)
Hibernate Search 4 goals are two folds:
= Be compatible with the new Hibernate Core 4 releases.
= Make the necessary architecture change to reach the future goals of Hibernate Search.
In particular, making Hibernate Search independent from Hibernate Core and allowing more
scalable "cloud-tainted" backends.
@emmanuelbernard
emmanuelbernard / hsearch4beta2.md
Created September 29, 2011 09:10 — forked from hferentschik/hsearch4beta2.md
Hibernate Search 4.0 Beta 2: no more Core mandatory dependency

Continuing our journey towards Hibernate Search 4, we have decided to add a Beta2 to the schedule.

The main feature is the full abstraction of Hibernate Search from Hibernate Core. This is especially good news for Infinispan Query users who won't have to drag Hibernate Core and its dependencies anymore. It is now also possible to write an integration between Hibernate Search and another datastore: all the contracts have been fleshed out.

If we have done our job right, you will have nothing to change in your Maven dependency declaration. 'hibernate-search' is still the main artifact to include, but it is now just a shell depending on the new 'hibernate-search-orm' module.

We also have upgraded to Lucene 3.4 which contains performance improvement and important bug fixes.

@emmanuelbernard
emmanuelbernard / A1_NumberOfNodes_SingleNode.java
Created March 8, 2012 18:22 — forked from gunnarmorling/A1_NumberOfNodes_SingleNode.java
Options for property pathes for method validation
//Option #A1 (currently in draft): Have a single node representing a parameter or return value *and* the hosting method/constructor
//path to @NotNull on the "book" parameter of addBook()
Node(name=book, methodDescriptor=..., parameterDescriptor=..., constructorDescriptor=null)
//path to @NotNull on the "title" attribute of the book passed as argument to addBook()
Node(name=book, methodDescriptor=..., parameterDescriptor=..., constructorDescriptor=null)
Node(name=title, methodDescriptor=null, parameterDescriptor=null, constructorDescriptor=null)
//path to @NotNull on the "title" attribute of the 4th book in the list passed as argument to addAllBooks()
#!/bin/bash
# Script to loop on local and remote branches, to delete all those which are
# already merged in master.
# Assumes "$USER" as your remote repository and "master" as your main branch.
# Careful if you use branches as tags!
#
# Inspired from http://devblog.springest.com/a-script-to-remove-old-git-branches
# Released under the WTFPL license version 2 http://sam.zoy.org/wtfpl/
# Copyright (c) 2012 Sanne Grinovero
# Copyright (c) 2012 Emmanuel Bernard - made remote repo parameterized
private class Indexer {
public void consumes(Iterator<Tuple> entityTuples) {
while (Tuple tuple = entityTuples.next() != null) {
Entry entry = convertToEntry(tuple);
pushToExecutorQueue(entry);
}
//pushToExecutorQueue, execute method
public execute() {