Hibernate ORM AbstractJtaPlatform - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM AbstractJtaPlatform class.

This code example shows how to use the following methods:
 
/** 
 * Resolves a Fabric3 transaction manager for Hibernate. 
 */ 
@EagerInit 
public final class F3TransactionManagerLookup extends AbstractJtaPlatform { 
    private static final long serialVersionUID = 422525777190048472L; 
    private static TransactionManager TM; 
 
    @Reference 
    public void setTransactionManager(TransactionManager transactionManager) { 
        F3TransactionManagerLookup.TM = transactionManager; 
    } 
 
    protected TransactionManager locateTransactionManager() { 
        return TM; 
    } 
 
    protected UserTransaction locateUserTransaction() { 
        return null; 
4
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:
import org.neo4j.kernel.impl.transaction.UserTransactionImpl; 
 
/** 
 * @author Davide D'Alto <davide@hibernate.org> 
 */ 
public class Neo4jJtaPlatform extends AbstractJtaPlatform { 
 
	@Override 
	protected TransactionManager locateTransactionManager() { 
		return neo4jDb().getDependencyResolver().resolveDependency( TxManager.class ); 
	} 
 
	@Override 
	protected UserTransaction locateUserTransaction() { 
		return new UserTransactionImpl( neo4jDb() ); 
	} 
 
	private GraphDatabaseAPI neo4jDb() { 
		ServiceRegistry serviceRegistry = serviceRegistry(); 
		serviceRegistry = serviceRegistry 
3
CodeRank
Experience pair programming with AI  Get Codota for Java