[hibernate-dev] [OGM] Transactions in Neo4j datastore
daltodavide at gmail.com
Wed Mar 13 13:12:44 EDT 2013
Well...I don't have alternative at the moment.
I think we could keep it as it is now and wait for some feedback from the users.
On Mon, Mar 4, 2013 at 1:17 PM, Emmanuel Bernard <emmanuel at hibernate.org> wrote:
> Do you have an alternative in mind?
> My understanding is that if you write a Neo4J JtaPlatform, then the
> transaction will be started:
> - if the transaction is manually started by the wrapping code
> - if someone uses Session.beginTransaction() or
> You wanted the Neo4J transaction to be started if @Transactional is
> added to a CDI bean? I'd say that's the job of the Neo4J team to amke
> sure that one works, no?
> If we can find a better solution that would be nice but I'm not sure I
> understand the problem :)
> On Mon 2013-02-25 15:08, Davide D'Alto wrote:
>> I'm working at the integration between OGM and Neo4j.
>> Neo4j is fully transactional and it requires to open a transaction
>> before the execution of any operation on the DB.
>> To integrate this mechanism with OGM I've created the class
>> Neo4jJtaPlatform.java that extends AbstractJtaPlatform and it's
>> registered using the configuration parameter
>> If I'm correct, while this solution is working, it requires the
>> application to manage transactions using the Neo4j transaction
>> manager. Are there alternatives to this approach?
>> The related pull request can be found at
>>  https://github.com/DavideD/hibernate-ogm/blob/2b6588998673bce8a9ccd973f693d7fe091e8c9c/hibernate-ogm-neo4j/src/main/java/org/hibernate/ogm/dialect/neo4j/Neo4jJtaPlatform.java
>> hibernate-dev mailing list
>> hibernate-dev at lists.jboss.org
More information about the hibernate-dev