Help

The Hibernate team is very happy to announce the release of another Beta of Hibernate OGM 4.1!

Progress has been made with respect to query execution and the Neo4j dialect. Also we do provide a so-called Bill of Materials POM now which the Maven users out there will appreciate (details below).

The GAV coordinates to be used with Maven, Gradle etc. are:

  • org.hibernate.ogm:hibernate-ogm-core:4.1.0.Beta6 for the OGM engine and
  • org.hibernate.ogm:hibernate-ogm-<%DATASTORE%>:4.1.0.Beta6, depending on the backend you want to use.

Alternatively you can fetch a release bundle containing Hibernate OGM and all its dependencies from SourceForge.

Please note that this new release requires Hibernate ORM 4.3.6.Final or later.

Query improvements

We've reworked major parts of the integration with the query execution machinery from ORM. This enables quite a few improvements in the field of JP-QL as well as native queries.

One is support for polymorphic queries also on those backends which don't use Hibernate Search for querying (Neo4j and MongoDB). This means queries targetting a super-class will return instances of any mapped sub-class as well.

Furthermore, Hibernate OGM now shows the same behavior with respect to auto-flushing you already know from Hibernate ORM. That is, if you submit a query, all pending changes to entities of the effected types will be flushed to the data store in order to ensure queries don't return any stale data. Whereas this works nicely on stores supporting full transaction semantics (namely, Neo4j), some care must be taken on stores with limited or non-existing rollback capabilities. Refer to the reference guide to learn more about the details.

In addition we took measures to cache native queries derived from JP-QL queries. Note that this requires Hibernate ORM 4.3.6.Final or newer. Generally we strive for compatibility with a complete minor release family (4.3.x), but in this case we need to make use of some advanced SPIs only introduced in 4.3.6. The module ZIP we provide for WildFly contains an updated ORM module as well. This will be added along side the existing ORM module, which remains unchanged.

More natural association mappings in Neo4j

As part of our ongoing work on the Neo4j dialect, associations are mapped to relationships finally the way you'd expect it. There used to be redundant properties on associations which are gone now. Only actual association properties are stored on relationships, e.g. the order of the elements of an ordered list. The following shows an example:

Here we have an entity Father with an ordered collection of Child entities which is mapped by a relationship to each Child node. The birthorder attribute (the name has been given via @OrderColumn) is stored as property on the relationships, just as it naturally makes sense.

On a tangent, we've updated to Neo4j 2.1.3.

Simplified version management

Another big usage improvement for Maven users comes in form of our new Bill of Material POM (BOM). This POM defines a set of matching versions of the Hibernate OGM modules and their dependencies, such as Hibernate ORM, Hibernate Search or the different datatstore connectors.

All you need to do is to add this BOM to the dependencyManagement block of your project POM using the special import scope:

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.hibernate.ogm</groupId>
            <artifactId>hibernate-ogm-bom</artifactId>
            <version>4.1.0.Beta6</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

Then you can declare dependencies to Hibernate OGM or any of the related modules without specifying a version, which you will get automatically from the BOM:

<dependencies>
    <dependency>
        <groupId>org.hibernate.ogm</groupId>
        <artifactId>hibernate-ogm-mongodb</artifactId>
    </dependency>
    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-search-orm</artifactId>
    </dependency>
    <dependency>
        <groupId>org.hibernate.javax.persistence</groupId>
        <artifactId>hibernate-jpa-2.1-api</artifactId>
    </dependency>
    ...
</dependencies>

To update to a new version of Hibernate OGM, simply update the referenced version of the BOM. This in turn will give you updated versions of any dependencies as required.

Your feedback matters

As we're approaching the Final release of Hibernate OGM 4.1 soon, your feedback matters more than ever! You can use the following tools to get in touch:

42 comments:
 
01. Oct 2014, 08:41 CET | Link

Always inspired to read your posts. It is really unique that reflecting your passion of writing on this site. fitjackets.com

ReplyQuote
 
02. Oct 2014, 14:59 CET | Link
David

I am not sure where you’re getting your info, but good topic. I needs to spend some time learning more or understanding more. Thanks for excellent information I was looking for this info for my mission. merchant account

 
03. Oct 2014, 08:01 CET | Link
kim

Excellent weblog right here! Additionally your website a lot up very fast! What web host are you the usage of? Can I am getting your associate hyperlink in your host? I wish my website loaded up as quickly as yours lol Wow, fantastic weblog layout! How long have you been blogging for? you made blogging look easy. The overall look of your web site is excellent, let alone the content material! servizioindicizzazione.com

 
04. Oct 2014, 03:49 CET | Link

I got a lot of tips from Alec maclaren in deciding what to do for my business.

 
04. Oct 2014, 18:03 CET | Link

definately enjoy every little bit of it and I have you bookmarked to check out new stuff of your blog a must read blog!!!! offset umbrellas

 
08. Oct 2014, 05:09 CET | Link

I am glad to visit your website Good Article, Thanks for the news Obat Tumor Lambung Tradisional

 
08. Oct 2014, 07:20 CET | Link
text your ex back examples michael fiore | highlevel99(AT)gmail.com

Well, this is the best article that I've read. There are many crazy and good things that I've done over the years, but there are 2 special moments which I'll never forget. Reading this article and eating the best pizza in Singapore. Those were good days!text your ex back examples michael fiore

 
08. Oct 2014, 19:48 CET | Link
jeffry

Great post. I was checking continuously this blog and I’m impressed! Very helpful info particularly the last part I care for such info a lot. I was seeking this particular info for a very long time. Thank you and best of luck. indicizzazione google ; posizionamento google ; servizio indicizzazione ; seo google ; penalizzazione google ; prima pagina google ; posizione google : guest post ; servizio posizionamento ; link building ; algoritmi google ; migliorare posizionamento google ;outsourcing

 
11. Oct 2014, 06:25 CET | Link
jen6

Thank you, I have recently been looking for info approximately this topic for a while and yours is the best I have came upon till now. But, what in regards to the conclusion? Are you sure concerning the source? menagepro-pro

 
11. Oct 2014, 06:35 CET | Link
sef4

of course like your web-site but you have to take a look at the spelling on quite a few of your posts. Several of them are rife with spelling issues and I in finding it very bothersome to tell the reality then again I will definitely come again again. menage-pro

 
11. Oct 2014, 11:29 CET | Link
semg1

I’ve been surfing on-line greater than three hours these days, but I never discovered any fascinating article like yours. It is lovely worth sufficient for me. In my opinion, if all site owners and bloggers made excellent content as you probably did, the web will be a lot more useful than ever before. “Revolution is not a onetime event.” by Audre Lorde. assurance bateau

 
11. Oct 2014, 14:26 CET | Link

Ancient rome arrived to add inside its areas much of north The eu, which often translated into harsher climatic disorders. Cozy surface clothing became tiffany jewelery outlet basic. The Roman current wardrobe listed the sagum -- the blanket-like place, considered from the Gauls; the lacerna, the rectangle-shaped little bit of constructed from wool, draped on the neck, which often needed to be attached using a form; the pallum and also cheap nike roshe run shoes uk females palla ended up being a short rectangle-shaped hide, affected from the Greek himation; the paludanentum, ended up being the enflamed version from the Greek chlamys, put on by simply Roman generals.

 
11. Oct 2014, 20:04 CET | Link
fredt

I like the helpful information you provide in your articles. I’ll bookmark your blog and check again here regularly. I am quite certain I will learn a lot of new stuff right here! www.moto.ca

 
12. Oct 2014, 13:07 CET | Link
felixchristopher12 | felixchristopher12(AT)hotmail.com
+

I just want to say thanks to you for your great post, it is help me a lot for my next presentation. Thanks for give me a lot of inspiration.

<a href="http://www.favoursplus.com.au">www.favoursplus.com.au</a>




 
12. Oct 2014, 19:48 CET | Link

This is also a very good post which I really enjoyed reading. It is not every day that I have the possibility to see something like this.. promaids.ca

13. Oct 2014, 07:58 CET | Link

Wonderful blog and good post.Its really helpful for me, awaiting for more new post. Keep Blogging!

Final year projects in Chennai
 
13. Oct 2014, 17:44 CET | Link
fred1

I am always invstigating online for tips that can assist me. Thank you! www.servizioindicizzazione.com

 
13. Oct 2014, 23:17 CET | Link

Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. menagepro.ca

15. Oct 2014, 17:18 CET | Link

The That's Not How Men Work book is only available online through author Marni Kinrys' website and is NOT sold through Amazon, Barnes and Noble, or other traditional book sellers.Poker88

16. Oct 2014, 03:28 CET | Link

Click HELP for text formatting instructions. Then edit this text and check the preview.

16. Oct 2014, 10:24 CET | Link

Enterprise looks two hours in. It's obvious that commerce no longer really exists, because otherwise someone would have tossed a hook on that thing and dragged it back to Earth for the salvage rights.Full Speed

16. Oct 2014, 13:05 CET | Link

Thanks to share my information.

php training in chennai
 
17. Oct 2014, 09:06 CET | Link
namy

It's really a great and helpful piece of info. I am satisfied that you just shared this useful info with us. Please keep us up to date like this. Thank you for sharing.primi sui motori

 
18. Oct 2014, 07:28 CET | Link

You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant See more

21. Oct 2014, 08:14 CET | Link

Wow unbelievable work i have found here must share with my friends Thanks

 
22. Oct 2014, 08:14 CET | Link

very useful post.. i am a daily reader of this website..! bring my ex back to me

 
26. Oct 2014, 07:26 CET | Link

I want you to thank for your time of this wonderful read!!! I definately enjoy every little bit of it and I have you bookmarked to check out new stuff of your blog a must read blog!! girlfriend system christian h. system

27. Oct 2014, 12:15 CET | Link

Please refer the link below,

oracle training in chennai

 
28. Oct 2014, 09:01 CET | Link
fruol1

Reading this information So i am glad to express that I’ve an incredibly excellent uncanny feeling I found out just what I needed. I such a lot certainly will make sure to do not fail to remember this website and give it a look regularly.posizionamento google

29. Oct 2014, 06:55 CET | Link

Best PHP Training in Chennai,

phptrainingchennai
 
29. Oct 2014, 06:57 CET | Link

Best PHP Training in Chennai,

PHP Training in Chennai
29. Oct 2014, 08:41 CET | Link

For best Web Designing Training in Chennai, refer the link below

Web Designing Training in Chennai
29. Oct 2014, 08:47 CET | Link

For Best Salesforce Training in Chennai, refer the link as below

salesforce training institute in chennai
29. Oct 2014, 09:01 CET | Link

For Best Oracle Apps Training in Chennai, refer the link as below

oracle apps training in chennai
29. Oct 2014, 09:04 CET | Link

For Oracle DBA Training in Chennai, refer the link below

oracle dba training chennai
 
29. Oct 2014, 17:44 CET | Link
Samers

It's in point of fact a great and helpful piece of information. I¡¦m satisfied that you simply shared this helpful info with us. Please stay us up to date like this. Thanks for sharing. excellent points altogether, you just gained a logo new reader. What might you recommend about your submit that you simply made a few days in the past? Any positive? posizionamento google

30. Oct 2014, 05:50 CET | Link

Hi,i hope to really understand this informstion.Awesome Blogs..!!!hadoop training in chennai..Very useful information.

30. Oct 2014, 05:53 CET | Link

Hi,very nice article.hadoop training in chennai.thanks for that...

30. Oct 2014, 05:55 CET | Link

Hi,I have to learned lot of information for this article.oracle training in chennai...Very nice..

Post Comment