public Attribute<?, ?> getAttribute() { if (attr != null) { return attr; } Metamodel metamodel = App.getPersistenceUnit().getEMF().getMetamodel(); ManagedType<?> type = JpaMetamodelHelper.getManagedType(metamodel, query.getQueryType()); attr = JpaMetamodelHelper.getAttribute(type, getProp()); return attr; }
public MappingAccessor getTargetPropertyConfig() { ClassAccessor queryType = JpaMapHelper.findClassAccessor(DynamicMetaSource.getEntityMaps(), query.getQueryType()); return JpaMapHelper.findProp(queryType, getProp()); }