Examples of namedQuery()


Examples of org.conventionsframework.qualifier.Query.namedQuery()

        javax.persistence.Query q = null;

        if(!"".equals(query.sql())){
             q = service.crud().getEntityManager().createQuery(query.sql());
        }
        else if(!"".equals(query.namedQuery())){
             q = service.crud().getEntityManager().createNamedQuery(query.namedQuery());
        }
       
        QueryParams params = ic.getMethod().getAnnotation(QueryParams.class);
        if(params != null){
View Full Code Here

Examples of org.conventionsframework.qualifier.Query.namedQuery()

        if(!"".equals(query.sql())){
             q = service.crud().getEntityManager().createQuery(query.sql());
        }
        else if(!"".equals(query.namedQuery())){
             q = service.crud().getEntityManager().createNamedQuery(query.namedQuery());
        }
       
        QueryParams params = ic.getMethod().getAnnotation(QueryParams.class);
        if(params != null){
            for (QueryParam queryParam : params.value()) {
View Full Code Here

Examples of org.hibernate.annotations.Loader.namedQuery()

      collection.setCustomSQLDeleteAll( sqlDeleteAll.sql(), sqlDeleteAll.callable(),
          ExecuteUpdateResultCheckStyle.parse( sqlDeleteAll.check().toString().toLowerCase() )
      );
    }
    if ( loader != null ) {
      collection.setLoaderName( loader.namedQuery() );
    }

    //work on association
    boolean isMappedBy = !BinderHelper.isDefault( mappedBy );
    collection.setInverse( isMappedBy );
View Full Code Here

Examples of org.hibernate.annotations.Loader.namedQuery()

      persistentClass.setCustomSQLDelete( sqlDeleteAll.sql(), sqlDeleteAll.callable(),
          ExecuteUpdateResultCheckStyle.parse( sqlDeleteAll.check().toString().toLowerCase() )
      );
    }
    if ( loader != null ) {
      persistentClass.setLoaderName( loader.namedQuery() );
    }

    //tuplizers
    if ( annotatedClass.isAnnotationPresent( Tuplizers.class ) ) {
      for (Tuplizer tuplizer : annotatedClass.getAnnotation( Tuplizers.class ).value()) {
View Full Code Here

Examples of org.hibernate.annotations.Loader.namedQuery()

      collection.setCustomSQLDeleteAll( sqlDeleteAll.sql(), sqlDeleteAll.callable(),
          ExecuteUpdateResultCheckStyle.fromExternalName( sqlDeleteAll.check().toString().toLowerCase() )
      );
    }
    if ( loader != null ) {
      collection.setLoaderName( loader.namedQuery() );
    }

    if (isMappedBy
        && (property.isAnnotationPresent( JoinColumn.class )
          || property.isAnnotationPresent( JoinColumns.class )
View Full Code Here

Examples of org.hibernate.annotations.Loader.namedQuery()

      persistentClass.setCustomSQLDelete( sqlDeleteAll.sql(), sqlDeleteAll.callable(),
          ExecuteUpdateResultCheckStyle.fromExternalName( sqlDeleteAll.check().toString().toLowerCase() )
      );
    }
    if ( loader != null ) {
      persistentClass.setLoaderName( loader.namedQuery() );
    }

    if ( annotatedClass.isAnnotationPresent( Synchronize.class )) {
      Synchronize synchronizedWith = annotatedClass.getAnnotation(Synchronize.class);
View Full Code Here

Examples of org.hibernate.annotations.Loader.namedQuery()

      collection.setCustomSQLDeleteAll( sqlDeleteAll.sql(), sqlDeleteAll.callable(),
          ExecuteUpdateResultCheckStyle.fromExternalName( sqlDeleteAll.check().toString().toLowerCase() )
      );
    }
    if ( loader != null ) {
      collection.setLoaderName( loader.namedQuery() );
    }

    //work on association
    boolean isMappedBy = !BinderHelper.isEmptyAnnotationValue( mappedBy );
View Full Code Here

Examples of org.hibernate.annotations.Loader.namedQuery()

      persistentClass.setCustomSQLDelete( sqlDeleteAll.sql(), sqlDeleteAll.callable(),
          ExecuteUpdateResultCheckStyle.parse( sqlDeleteAll.check().toString().toLowerCase() )
      );
    }
    if ( loader != null ) {
      persistentClass.setLoaderName( loader.namedQuery() );
    }

    //tuplizers
    if ( annotatedClass.isAnnotationPresent( Tuplizers.class ) ) {
      for (Tuplizer tuplizer : annotatedClass.getAnnotation( Tuplizers.class ).value()) {
View Full Code Here

Examples of org.hibernate.annotations.Loader.namedQuery()

      collection.setCustomSQLDeleteAll( sqlDeleteAll.sql(), sqlDeleteAll.callable(),
          ExecuteUpdateResultCheckStyle.parse( sqlDeleteAll.check().toString().toLowerCase() )
      );
    }
    if ( loader != null ) {
      collection.setLoaderName( loader.namedQuery() );
    }

    //work on association
    boolean isMappedBy = !BinderHelper.isDefault( mappedBy );
View Full Code Here

Examples of org.hibernate.annotations.Loader.namedQuery()

      persistentClass.setCustomSQLDelete( sqlDeleteAll.sql(), sqlDeleteAll.callable(),
          ExecuteUpdateResultCheckStyle.fromExternalName( sqlDeleteAll.check().toString().toLowerCase() )
      );
    }
    if ( loader != null ) {
      persistentClass.setLoaderName( loader.namedQuery() );
    }

    if ( annotatedClass.isAnnotationPresent( Synchronize.class )) {
      Synchronize synchronizedWith = annotatedClass.getAnnotation(Synchronize.class);
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.