This is an automated email from the ASF dual-hosted git repository. tandraschko pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/deltaspike.git
The following commit(s) were added to refs/heads/master by this push: new c75000129 fixed count check query new 9450ec18e Merge pull request #137 from stonewoodman/fix_count_check c75000129 is described below commit c750001290e63b8f4d969d48a361e5370cbcc227 Author: stonewoodman <benni1...@gmail.com> AuthorDate: Mon Dec 11 14:51:31 2023 +0000 fixed count check query --- .../deltaspike/data/impl/handler/CdiQueryInvocationContext.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/handler/CdiQueryInvocationContext.java b/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/handler/CdiQueryInvocationContext.java index 96571eb93..92fcdcc7d 100644 --- a/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/handler/CdiQueryInvocationContext.java +++ b/deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/handler/CdiQueryInvocationContext.java @@ -346,8 +346,8 @@ public class CdiQueryInvocationContext implements QueryInvocationContext private boolean countCheck(Object entity, Property<Serializable> primaryKeyProperty) { - StringBuilder jpql = new StringBuilder("SELECT COUNT(e) FROM " + getEntityClass() - .getSimpleName() + " e "); + StringBuilder jpql = new StringBuilder("SELECT COUNT(e) FROM " + getEntityMetadata() + .getEntityName() + " e "); jpql.append("WHERE e."); jpql.append(primaryKeyProperty.getName()); jpql.append(" = :id");