public Object createNamedQuery(Objectref objRef) {
String namedQuery = getStringFromObjectref(objRef);
for(Class<?> entityClass : managedEntityClasses) {
if(entityClass.isAnnotationPresent(NamedQuery.class)) {
if(entityClass.getAnnotation(NamedQuery.class).name().equals(namedQuery)) {
String jpqlQueryString = entityClass.getAnnotation(NamedQuery.class).query();
return hqlAnalyzer.getQLSelectStatement(jpqlQueryString, null);
}
}
}
return null;
}
MugglEntityManager.java 文件源码
java
阅读 37
收藏 0
点赞 0
评论 0
项目:tap17-muggl-javaee
作者:
评论列表
文章目录