private void registerTransactionScopedSync(HibernateProxy proxy, Key key) throws Fabric3Exception { try { TransactionScopedSync sync = new TransactionScopedSync(key, proxy); key.transaction.registerSynchronization(sync); } catch (RollbackException | SystemException e) { throw new Fabric3Exception(e); } }
private void registerTransactionScopedSync(HibernateProxy proxy, Key key) throws Fabric3Exception { try { TransactionScopedSync sync = new TransactionScopedSync(key, proxy); key.transaction.registerSynchronization(sync); } catch (RollbackException | SystemException e) { throw new Fabric3Exception(e); } }
private void registerTransactionScopedSync(HibernateProxy proxy, Key key) throws EntityManagerCreationException { try { TransactionScopedSync sync = new TransactionScopedSync(key, proxy); key.transaction.registerSynchronization(sync); } catch (RollbackException e) { throw new EntityManagerCreationException(e); } catch (SystemException e) { throw new EntityManagerCreationException(e); } }