resultSetMapping.setValue(query.resultSetMapping()); namedQuery.addMemberValue("resultSetMapping", resultSetMapping);
throw new AnnotationException( "A named query must have a name when used in class or package level" ); String resultSetMapping = queryAnn.resultSetMapping(); QueryHintDefinition hints = new QueryHintDefinition( queryAnn.hints() ); String queryName = queryAnn.query();
String resultSetMapping = queryAnn.resultSetMapping(); QueryHint[] hints = queryAnn.hints(); String queryName = queryAnn.query();
private NamedQueryInfo(NamedNativeQuery theQuery) { mName = theQuery.name(); mQuery = theQuery.query(); mResultMapping = theQuery.resultSetMapping(); mResultClass = theQuery.resultClass(); mHints = Arrays.asList(theQuery.hints()); }
/** * @param locator * the locator * @param annotation * the annotation * * @since 2.0.0 */ public NamedNativeQueryMetadataImpl(AbstractLocator locator, NamedNativeQuery annotation) { super(); this.locator = locator; this.name = annotation.name(); this.query = annotation.query(); this.resultClass = annotation.resultClass().getName(); this.resultSetMapping = annotation.resultSetMapping(); for (final QueryHint hint : annotation.hints()) { this.hints.put(hint.name(), hint.value()); } }
/** * @param locator * the locator * @param annotation * the annotation * * @since 2.0.0 */ public NamedNativeQueryMetadataImpl(AbstractLocator locator, NamedNativeQuery annotation) { super(); this.locator = locator; this.name = annotation.name(); this.query = annotation.query(); this.resultClass = annotation.resultClass().getName(); this.resultSetMapping = annotation.resultSetMapping(); for (final QueryHint hint : annotation.hints()) { this.hints.put(hint.name(), hint.value()); } }
/** * @param locator * the locator * @param annotation * the annotation * * @since 2.0.0 */ public NamedNativeQueryMetadataImpl(AbstractLocator locator, NamedNativeQuery annotation) { super(); this.locator = locator; this.name = annotation.name(); this.query = annotation.query(); this.resultClass = annotation.resultClass().getName(); this.resultSetMapping = annotation.resultSetMapping(); for (final QueryHint hint : annotation.hints()) { this.hints.put(hint.name(), hint.value()); } }
/** * INTERNAL: */ public MetadataNamedNativeQuery(NamedNativeQuery namedNativeQuery, Class javaClass) { // Set the location where we found this query. setLocation(javaClass.getName()); // Process the name setName(namedNativeQuery.name()); // Process the query string. setEJBQLString(namedNativeQuery.query()); // Process the query hints. for (QueryHint hint : namedNativeQuery.hints()) { addHint(new MetadataQueryHint(hint.name(), hint.value())); } // Process the result class. setResultClass(namedNativeQuery.resultClass()); // Process the result set mapping. setResultSetMapping(namedNativeQuery.resultSetMapping()); }
if (queries[j].resultSetMapping() != null) resultMappingName = queries[j].resultSetMapping();
String resultSetMapping = queryAnn.resultSetMapping(); QueryHint[] hints = queryAnn.hints(); String queryName = queryAnn.query();
nativeQueryConfig.setResultSetMapping(namedNativeQueryAnn.resultSetMapping()); _persistenceUnit.addNamedNativeQuery(namedNativeQueryAnn.name(), nativeQueryConfig);
if (queries[j].resultSetMapping() != null) resultMappingName = queries[j].resultSetMapping();
meta.setResultType(res); if (!StringUtils.isEmpty(query.resultSetMapping())) meta.setResultSetMappingName(query.resultSetMapping());
meta.setResultType(res); if (!StringUtils.isEmpty(query.resultSetMapping())) meta.setResultSetMappingName(query.resultSetMapping()); for (QueryHint hint : query.hints()) meta.addHint(hint.name(), hint.value());
meta.setResultType(res); if (!StringUtils.isEmpty(query.resultSetMapping())) meta.setResultSetMappingName(query.resultSetMapping()); for (QueryHint hint : query.hints()) meta.addHint(hint.name(), hint.value());
String resultSetMapping = queryAnn.resultSetMapping(); QueryHint[] hints = queryAnn.hints(); String queryName = queryAnn.query();
String resultSetMapping = queryAnn.resultSetMapping(); QueryHint[] hints = queryAnn.hints(); String queryName = queryAnn.query();
meta.setResultType(res); if (!StringUtil.isEmpty(query.resultSetMapping())) meta.setResultSetMappingName(query.resultSetMapping()); for (QueryHint hint : query.hints()) meta.addHint(hint.name(), hint.value());
meta.setResultType(res); if (!StringUtil.isEmpty(query.resultSetMapping())) meta.setResultSetMappingName(query.resultSetMapping()); for (QueryHint hint : query.hints()) meta.addHint(hint.name(), hint.value());
.setComment( hints.getString( sqlString, QueryHints.COMMENT ) ); final String resultSetMappingName = queryAnn.resultSetMapping(); if ( !BinderHelper.isEmptyAnnotationValue( resultSetMappingName ) ) { builder.setResultSetMapping( resultSetMappingName );