Package org.hibernate.dialect

Examples of org.hibernate.dialect.SQLServerDialect


    }

    if ( databaseName.startsWith( "Microsoft SQL Server" ) ) {
      switch ( databaseMajorVersion ) {
                case 8:
                    return new SQLServerDialect();
                case 9:
                    return new SQLServer2005Dialect();
                case 10:
                    return new SQLServer2008Dialect();
                default:
                    LOG.unknownSqlServerVersion(databaseMajorVersion);
      }
      return new SQLServerDialect();
    }

    if ( "Sybase SQL Server".equals( databaseName ) || "Adaptive Server Enterprise".equals( databaseName ) ) {
      return new SybaseASE15Dialect();
    }
View Full Code Here


    }

    if ( databaseName.startsWith( "Microsoft SQL Server" ) ) {
      switch ( databaseMajorVersion ) {
                case 8:
                    return new SQLServerDialect();
                case 9:
                    return new SQLServer2005Dialect();
                case 10:
                    return new SQLServer2008Dialect();
                default:
                    LOG.unknownSqlServerVersion(databaseMajorVersion);
      }
      return new SQLServerDialect();
    }

    if ( "Sybase SQL Server".equals( databaseName ) || "Adaptive Server Enterprise".equals( databaseName ) ) {
      return new SybaseASE15Dialect();
    }
View Full Code Here

      AnnotationConfiguration config = new AnnotationConfiguration();
      config.addAnnotatedClass(Address.class);
      config.addAnnotatedClass(Person.class);
      config.buildSessionFactory();
      String[] schema = config
          .generateSchemaCreationScript(new SQLServerDialect());
      for (String s : schema) {
        log.debug(s);
      }
      String expectedMappingTableSql = "create table personAddress (address_id numeric(19,0) null, " +
          "person_id numeric(19,0) not null, primary key (person_id))";
View Full Code Here

      config.addAnnotatedClass(Bunny.class);
      config.addAnnotatedClass(PointyTooth.class);
      config.addAnnotatedClass(TwinkleToes.class);
      config.buildSessionFactory();
      String[] schema = config
          .generateSchemaCreationScript(new SQLServerDialect());
      for (String s : schema) {
        log.debug(s);
      }
      String expectedSqlPointyTooth = "create table PointyTooth (id numeric(128,0) not null, " +
          "bunny_id numeric(128,0) null, primary key (id))";
View Full Code Here

    if ( databaseName.startsWith( "Microsoft SQL Server" ) ) {
      final int majorVersion = info.getDatabaseMajorVersion();

      switch ( majorVersion ) {
        case 8:
          return new SQLServerDialect();
        case 9:
          return new SQLServer2005Dialect();
        case 10:
          return new SQLServer2008Dialect();
        case 11:
          return new SQLServer2012Dialect();
        default:
          LOG.unknownSqlServerVersion( majorVersion );
      }
      return new SQLServerDialect();
    }

    if ( "Sybase SQL Server".equals( databaseName ) || "Adaptive Server Enterprise".equals( databaseName ) ) {
      return new SybaseASE15Dialect();
    }
View Full Code Here

    }

    if ( databaseName.startsWith( "Microsoft SQL Server" ) ) {
      switch ( databaseMajorVersion ) {
      case 8:
        return new SQLServerDialect();
      case 9:
        return new SQLServer2005Dialect();
      case 10:
        return new SQLServer2008Dialect();
      default:
        log.warn( "Unknown Microsoft SQL Server major version [" + databaseMajorVersion + "] using SQL Server 2000 dialect" );
      }
      return new SQLServerDialect();
    }

    if ( "Sybase SQL Server".equals( databaseName ) || "Adaptive Server Enterprise".equals( databaseName ) ) {
      return new SybaseASE15Dialect();
    }
View Full Code Here

      config.addAnnotatedClass(Bunny.class);
      config.addAnnotatedClass(PointyTooth.class);
      config.addAnnotatedClass(TwinkleToes.class);
      config.buildSessionFactory();
      String[] schema = config
          .generateSchemaCreationScript(new SQLServerDialect());
      for (String s : schema) {
        log.debug(s);
      }
      String expectedSqlPointyTooth = "create table PointyTooth (id numeric(128,0) not null, " +
          "bunny_id numeric(128,0) null, primary key (id))";
View Full Code Here

      AnnotationConfiguration config = new AnnotationConfiguration();
      config.addAnnotatedClass(Address.class);
      config.addAnnotatedClass(Person.class);
      config.buildSessionFactory();
      String[] schema = config
          .generateSchemaCreationScript(new SQLServerDialect());
      for (String s : schema) {
        log.debug(s);
      }
      String expectedMappingTableSql = "create table personAddress (address_id numeric(19,0) null, " +
          "person_id numeric(19,0) not null, primary key (person_id))";
View Full Code Here

      config.addAnnotatedClass(Bunny.class);
      config.addAnnotatedClass(PointyTooth.class);
      config.addAnnotatedClass(TwinkleToes.class);
      config.buildSessionFactory();
      String[] schema = config
          .generateSchemaCreationScript(new SQLServerDialect());
      for (String s : schema) {
        log.debug(s);
      }
      String expectedSqlPointyTooth = "create table PointyTooth (id numeric(128,0) not null, " +
          "bunny_id numeric(128,0) null, primary key (id))";
View Full Code Here

    }

    if ( databaseName.startsWith( "Microsoft SQL Server" ) ) {
      switch ( databaseMajorVersion ) {
                case 8:
                    return new SQLServerDialect();
                case 9:
                    return new SQLServer2005Dialect();
                case 10:
                    return new SQLServer2008Dialect();
                case 11:
                  return new SQLServer2012Dialect();
                default:
                    LOG.unknownSqlServerVersion(databaseMajorVersion);
      }
      return new SQLServerDialect();
    }

    if ( "Sybase SQL Server".equals( databaseName ) || "Adaptive Server Enterprise".equals( databaseName ) ) {
      return new SybaseASE15Dialect();
    }
View Full Code Here

TOP

Related Classes of org.hibernate.dialect.SQLServerDialect

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.