fix transactionmanager and entitymanagerfactory