Package org.hibernate

Examples of org.hibernate.AnnotationException


        log.info( "Hibernate Validator not found: ignoring" );
      }
      isValidatorNotPresentLogged = true;
    }
    catch ( NoSuchMethodException e ) {
      throw new AnnotationException( e );
    }
    if ( applyMethod != null ) {
      for ( PersistentClass persistentClazz : ( Collection<PersistentClass> ) classes.values() ) {
        //integrate the validate framework
        String className = persistentClazz.getClassName();
View Full Code Here


      String dependentTable = sp.getValue().getTable().getQuotedName();
      if ( dependentTable.compareTo( startTable ) == 0 ) {
        StringBuilder sb = new StringBuilder(
            "Foreign key circularity dependency involving the following tables: "
        );
        throw new AnnotationException( sb.toString() );
      }
      buildRecursiveOrderedFkSecondPasses( orderedFkSecondPasses, isADependencyOf, startTable, dependentTable );
      if ( !orderedFkSecondPasses.contains( sp ) ) {
        orderedFkSecondPasses.add( 0, sp );
      }
View Full Code Here

      for ( Column column : unboundNoLogical ) {
        sb.append( column.getName() ).append( ", " );
      }
      sb.setLength( sb.length() - 2 );
      sb.append( " not found" );
      throw new AnnotationException( sb.toString() );
    }
  }
View Full Code Here

        for ( String classname : classnames ) {
          try {
            annotatedClasses.add( reflectionManager.classForName( classname, this.getClass() ) );
          }
          catch ( ClassNotFoundException e ) {
            throw new AnnotationException( "Unable to load class defined in XML: " + classname, e );
          }
        }
      }
    }
  }
View Full Code Here

      Object validateEventListener;
      try {
        validateEventListener = validateEventListenerClass.newInstance();
      }
      catch ( Exception e ) {
        throw new AnnotationException( "Unable to load Validator event listener", e );
      }
      {
        boolean present = false;
        PreInsertEventListener[] listeners = getEventListeners().getPreInsertEventListeners();
        if ( listeners != null ) {
View Full Code Here

      return classes;
    }

    public void addAnyMetaDef(AnyMetaDef defAnn) throws AnnotationException {
      if ( anyMetaDefs.containsKey( defAnn.name() ) ) {
        throw new AnnotationException( "Two @AnyMetaDef with the same name defined: " + defAnn.name() );
      }
      anyMetaDefs.put( defAnn.name(), defAnn );
    }
View Full Code Here

      return classes;
    }

    public void addAnyMetaDef(AnyMetaDef defAnn) throws AnnotationException {
      if ( anyMetaDefs.containsKey( defAnn.name() ) ) {
        throw new AnnotationException( "Two @AnyMetaDef with the same name defined: " + defAnn.name() );
      }
      anyMetaDefs.put( defAnn.name(), defAnn );
    }
View Full Code Here

                  this.getClass()
              )
          );
        }
        catch ( ClassNotFoundException e ) {
          throw new AnnotationException(
              "Unable to find " + element.getPath() + ".class: " + className, e
          );
        }
      }
      AnnotationDescriptor ad = new AnnotationDescriptor( EntityListeners.class );
View Full Code Here

        clazz = ReflectHelper.classForName(
            XMLContext.buildSafeClassName( className, defaults ), this.getClass()
        );
      }
      catch ( ClassNotFoundException e ) {
        throw new AnnotationException(
            "Unable to find " + element.getPath() + " " + nodeName + ": " + className, e
        );
      }
      ad.setValue( getJavaAttributeNameFromXMLOne( nodeName ), clazz );
    }
View Full Code Here

              XMLContext.buildSafeClassName( mapKeyClassName, defaults ),
              this.getClass()
          );
        }
        catch ( ClassNotFoundException e ) {
          throw new AnnotationException(
              "Unable to find " + element.getPath() + " " + nodeName + ": " + mapKeyClassName, e
          );
        }
        ad.setValue( "value", clazz );
      }
View Full Code Here

TOP

Related Classes of org.hibernate.AnnotationException

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.