diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java index 4aa9bf6e5ef29..727124e3017a8 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java @@ -1221,7 +1221,7 @@ public static QuarkusScanner buildQuarkusScanner(JpaEntitiesBuildItem domainObje } scanner.setPackageDescriptors(packageDescriptors); Set classDescriptors = new HashSet<>(); - for (String className : domainObjects.getAllModelClassNames()) { + for (String className : domainObjects.getEntityClassNames()) { QuarkusScanner.ClassDescriptorImpl desc = new QuarkusScanner.ClassDescriptorImpl(className, ClassDescriptor.Categorization.MODEL); classDescriptors.add(desc);