diff --git a/configurations/hibernate-jpa/src/main/java/io/micronaut/configuration/hibernate/jpa/HibernateTransactionManagerFactory.java b/configurations/hibernate-jpa/src/main/java/io/micronaut/configuration/hibernate/jpa/HibernateTransactionManagerFactory.java
index <HASH>..<HASH> 100644
--- a/configurations/hibernate-jpa/src/main/java/io/micronaut/configuration/hibernate/jpa/HibernateTransactionManagerFactory.java
+++ b/configurations/hibernate-jpa/src/main/java/io/micronaut/configuration/hibernate/jpa/HibernateTransactionManagerFactory.java
@@ -32,7 +32,7 @@ import javax.sql.DataSource;
  */
 @Factory
 @Requires(classes = HibernateTransactionManager.class)
-@Replaces(DataSourceTransactionManagerFactory.class)
+@Replaces(factory = DataSourceTransactionManagerFactory.class)
 public class HibernateTransactionManagerFactory {
 
     /**
Update hibernate configuration to use new factory replacement feature