After one month from the previous release we are happy to announce the new Hibernate OGM 4.0.0.Beta4.

Initial embedded Neo4j integration

Hibernate OGM can now work with Neo4j, a fully transactional property graph database.

Graph databases represent the data as a system of interconnected nodes and work well when you need to store information like the relationship between people in social networks. In addition, in a property graph, you can also add properties to the elements of the graph.

Hibernate OGM maps an entity as a node where the attributes of the entity become properties of the node. At the moment we add some additional properties for the conversion of the node into the entity but we are planning to replace them using the label mechanism added in the latest Neo4j versions.

The relationship between two nodes represents an association between two entities. Currently a bidirectional association requires two relationships but we are going to change this since Neo4j can navigate a relationship in both directions.

The integration with Neo4j is experimental but we are planning on improving it soon. Please, let us know what you think or help us improving it.

Native query support for MongoDB

One missing feature in the previous releases was the ability to retrieve managed entities using the query language of the database of your choice. This is particularly useful if the query language supports specific features unavailable to JP-QL or currently non implemented.

We started to work on this feature and it is now possible to execute a MongoDB query using the org.hibernate.Session or the javax.persistence.EntityManager.

Let's look at an example using the session:

List<OscarWildePoem> result = session
    .createSQLQuery( "{ $query : { author : 'Oscar Wilde' }, $orderby : { name : 1 } }" )
    .addEntity( OscarWildePoem.TABLE_NAME, OscarWildePoem.class )

and one using the entity manager:

List<OscarWildePoem> results = entityManager
    .createNativeQuery( "{ $query : { author : 'Oscar Wilde' }, $orderby : { name : 1 } }", OscarWildePoem.class )

How to try it

You can take a look at the documentation or check how you can download Hibernate OGM 4.0.0.Beta4.

Many thanks to all the contributors that made this release possible whether it be via pull requests, bug reports or feedback on the forum.

31. Oct 2013, 17:18 CET | Link


19. Nov 2013, 15:26 CET | Link
Bibhas Prasad | bibhas028(AT)

ORM is the relational mapping of Database, so it will be great if i can get piece of code having understanding of hibernate from an application

24. Jan 2014, 04:38 CET | Link

Breitling replica watches, Tag Heuer replica watches, Daytona affected watches, Day Date apery watches, Date Just affected watches, Submariner replica watches, GMT Master 2 replica watches, Cartier replica watches, Zenith affected watches, and Omega affected watches. The a lot of replica watches uk amazing affection of affected watches is that they are actual affordable and dependable watches, communicable your eyes above the imagination. Accordingly one does not accept to be afraid about his or her alternative of apery watches at all. Do you apperceive that replica rolex watches are aural section of cartier replica uk actualization accessory? If not, they absolutely angle amidst the best adulatory gifts. If you wish to accord attractive and acclaimed adulatory ability to your girlfriends, again it is none added than rolex watches at all. Besides replica watches, you can aswell anticipate about some added types of actualization accessories replica wallets, replica handbags, scarves, handsets, replica pens, necklaces, rings and earrings back they are aswell actual affable adulatory gifts. Further replica watches are beauteous searching watches because they abolish your abasement and accommodate you a accord of swiss replica watches apperception forever. Accordingly online replica watches industry offers bargain replica watches to its a lot of affable barter common in a applied manner.

28. Jul 2014, 09:26 CET | Link

In addition to its personal jewelry brand Anil Arjandas, he is a super player and fashion replica louis vuitton watches fine. In Instagram upload their everyday watch with his greatest hobby, along with soy sauce, accompanied by appearance of the watch and his Porsche sports car, Aston Martin sports car, Tom Ford suits, Cuban cigars and other luxury goods, pies plus not so Tyrant Popular fashion cartier replica brands for him attracted 150,000 fans from around the world. Anil Arjandas although preference Collection watches but also very gucci replica loyal, Audemars Piguet Royal Oak can be said to be his favorite. In addition, he love Tom Ford menswear, love Goyard bags and Hermes bags! Tyrant say only have the strength to play a real table, Anil Arjanda really deserved.

Post Comment