Package javax.persistence

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


    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

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

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

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

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

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

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

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

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

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

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

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

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

    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

  }

  private SqlResultSetMappings getSqlResultSetMappings(Element tree, XMLContext.Default defaults) {
    List<SqlResultSetMapping> results = buildSqlResultsetMappings( tree, defaults );
    if ( defaults.canUseJavaAnnotations() ) {
      SqlResultSetMapping annotation = getJavaAnnotation( SqlResultSetMapping.class );
      addSqlResultsetMappingIfNeeded( annotation, results );
      SqlResultSetMappings annotations = getJavaAnnotation( SqlResultSetMappings.class );
      if ( annotations != null ) {
        for ( SqlResultSetMapping current : annotations.value() ) {
          addSqlResultsetMappingIfNeeded( current, results );
View Full Code Here

TOP

Related Classes of javax.persistence.SqlResultSetMapping

Copyright © 2018 www.massapicom. 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.