Examples of HibernateException


Examples of org.hibernate.HibernateException

    return instantiateDialect( dialectName );
  }

  private static Dialect instantiateDialect(String dialectName) throws HibernateException {
    if ( dialectName == null ) {
      throw new HibernateException( "The dialect was not set. Set the property hibernate.dialect." );
    }
    try {
      return ( Dialect ) ReflectHelper.classForName( dialectName ).newInstance();
    }
    catch ( ClassNotFoundException cnfe ) {
      throw new HibernateException( "Dialect class not found: " + dialectName );
    }
    catch ( Exception e ) {
      throw new HibernateException( "Could not instantiate given dialect class: " + dialectName, e );
    }
  }
View Full Code Here

Examples of org.hibernate.HibernateException

   * @throws HibernateException If no mapping was specified for that type.
   */
  public String getTypeName(int code) throws HibernateException {
    String result = typeNames.get( code );
    if ( result == null ) {
      throw new HibernateException( "No default type mapping for (java.sql.Types) " + code );
    }
    return result;
  }
View Full Code Here

Examples of org.hibernate.HibernateException

   * @throws HibernateException If no mapping was specified for that type.
   */
  public String getTypeName(int code, long length, int precision, int scale) throws HibernateException {
    String result = typeNames.get( code, length, precision, scale );
    if ( result == null ) {
      throw new HibernateException(
          "No type mapping for java.sql.Types code: " +
          code +
          ", length: " +
          length
      );
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.