Examples of SqlResultSetMapping


Examples of javax.persistence.SqlResultSetMapping

        void onEntityMap(
                JpaEntityMap entityMap,
                AnnotatedElement element,
                AnnotationProcessorStack context) {

            SqlResultSetMapping annotation = element
                    .getAnnotation(SqlResultSetMapping.class);
            entityMap.getSqlResultSetMappings().add(
                    new JpaSqlResultSetMapping(annotation));
        }
View Full Code Here

Examples of javax.persistence.SqlResultSetMapping

    mappings.addGenerator( idGen );
  }

  private static void bindQueries(XAnnotatedElement annotatedElement, Mappings mappings) {
    {
      SqlResultSetMapping ann = annotatedElement.getAnnotation( SqlResultSetMapping.class );
      QueryBinder.bindSqlResultsetMapping( ann, mappings, false );
    }
    {
      SqlResultSetMappings ann = annotatedElement.getAnnotation( SqlResultSetMappings.class );
      if ( ann != null ) {
        for ( SqlResultSetMapping current : ann.value() ) {
          QueryBinder.bindSqlResultsetMapping( current, mappings, false );
        }
      }
    }
    {
View Full Code Here

Examples of javax.persistence.SqlResultSetMapping

        void onEntity(
                JpaEntity entity,
                AnnotatedElement element,
                AnnotationProcessorStack context) {

            SqlResultSetMapping annotation = element
                    .getAnnotation(SqlResultSetMapping.class);
            entity.getSqlResultSetMappings().add(new JpaSqlResultSetMapping(annotation));
        }
View Full Code Here

Examples of javax.persistence.SqlResultSetMapping

        void onEntityMap(
                JpaEntityMap entityMap,
                AnnotatedElement element,
                AnnotationProcessorStack context) {

            SqlResultSetMapping annotation = element
                    .getAnnotation(SqlResultSetMapping.class);
            entityMap.getSqlResultSetMappings().add(
                    new JpaSqlResultSetMapping(annotation));
        }
View Full Code Here

Examples of javax.persistence.SqlResultSetMapping

        void onEntity(
                JpaEntity entity,
                AnnotatedElement element,
                AnnotationProcessorStack context) {

            SqlResultSetMapping annotation = element
                    .getAnnotation(SqlResultSetMapping.class);
            entity.setSqlResultSetMapping(new JpaSqlResultSetMapping(annotation));
        }
View Full Code Here

Examples of javax.persistence.SqlResultSetMapping

        void onEntityMap(
                JpaEntityMap entityMap,
                AnnotatedElement element,
                AnnotationProcessorStack context) {

            SqlResultSetMapping annotation = element
                    .getAnnotation(SqlResultSetMapping.class);
            entityMap.getSqlResultSetMappings().add(
                    new JpaSqlResultSetMapping(annotation));
        }
View Full Code Here

Examples of net.sourceforge.jpaxjc.ns.persistence.orm.SqlResultSetMapping

                    orm.getNamedNativeQuery().add( e );
                    acknowledge = true;
                }
                else if ( c.element.getLocalName().equals( "sql-result-set-mapping" ) )
                {
                    final SqlResultSetMapping e =
                        JAXB.unmarshal( new DOMSource( c.element ), SqlResultSetMapping.class );

                    orm.getSqlResultSetMapping().add( e );
                    acknowledge = true;
                }
View Full Code Here

Examples of net.sourceforge.jpaxjc.ns.persistence.orm.SqlResultSetMapping

                    entity.getNamedNativeQuery().add( e );
                    acknowledge = true;
                }
                else if ( c.element.getLocalName().equals( "sql-result-set-mapping" ) )
                {
                    final SqlResultSetMapping e =
                        JAXB.unmarshal( new DOMSource( c.element ), SqlResultSetMapping.class );

                    entity.getSqlResultSetMapping().add( e );
                    acknowledge = true;
                }
View Full Code Here

Examples of oracle.toplink.essentials.queryframework.SQLResultSetMapping

            descriptor.convertClassNamesToClasses(classLoader);
        }
        // convert class names to classes for each SQLResultSetMapping
        if (sqlResultSetMappings != null) {
            for (Iterator mappingIt = sqlResultSetMappings.keySet().iterator(); mappingIt.hasNext();) {
                SQLResultSetMapping mapping = (SQLResultSetMapping) sqlResultSetMappings.get(mappingIt.next());
                mapping.convertClassNamesToClasses(classLoader);
            }
        }
    }
View Full Code Here

Examples of org.apache.cayenne.query.SQLResultSetMapping

   
    /**
     * @since 3.0
     */
    public SQLResultSetMapping getResultSetMapping(String name) {
        SQLResultSetMapping result = resultSetMappingCache.get(name);

        if (result == null) {
            // reconstruct cache just in case some of the datamaps
            // have changed and now contain the required information
            constructCache();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.