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:35546921a24b485d5ff4
Created October 20, 2014 15:41
awestruct 0.5.6.beta2 error on regeneration
Change detected for file /Users/emmanuel/Sites/test/news/2014-09-03-test1.md
From: /Users/emmanuel/Sites/test/.bundle/ruby/1.9.1/bundler/gems/awestruct-c4a44068210e/lib/awestruct/engine.rb @ line 356 Awestruct::Engine#generate_page_and_dependencies:
351: $LOG.debug "\t\t Key <- #{p.dependencies.key_dependents.size}"
352: $LOG.debug "--------------------"
353: end
354: end
355:
=> 356: binding.pry
validator.validate(
user,
Changes
.onList(
User::getAddresses,
Changes.onList()
.onIndex(12).remove()
.onIndex(10)
.apply(
Changes
function setjava {
local vmdir=/Library/Java/JavaVirtualMachines
local ver=${1?Usage: setjava <version>}
export JAVA_HOME=`/usr/libexec/java_home -v $ver`
PATH=$(echo $PATH | tr ':' '\n' | grep -v $vmdir | tr '\n' ':')
export PATH=$JAVA_HOME/bin:$PATH
java -version
}
#!/bin/bash
# Notify you when a task is done
#
# $ notify mvn clean install
# runs 'mvn clean install'
# notify you when it's done
#
# A notification is sent upon build completion if your OS supports it:
# - on Mac OS, install Growl and grownnotifier
# - on Linux, install send-notify
@emmanuelbernard
emmanuelbernard / contraint.jave
Created April 9, 2015 20:06
Parent Constraint Bean Validation
package org.hibernate.validator;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import javax.validation.Constraint;
[INFO] Starting audit...
TransactionalJmsMasterSlave.java:151: Left parentheses should be followed by 1 whitespace
TransactionalJmsMasterSlaveUsingModulesIT.java:18:8: Unused import - org.hibernate.search.test.integration.jms.SearchNewEntityJmsMasterSlave.
Audit done.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
By marketing, I mean the various operations related to:
- brand awareness
- product awareness
- content marketing
- customer acquisition
What really eludes me is how companies pilot the cost and choices they make in these areas.
R&D and sales, I can see how choices are made.
But it seems that on the marketing side, effects are extremely indirect (the worse being brand awareness).
For example, paying to be present at a tradeshow will bring sales leads but that often does not cover the whole cost.