Tabnine Logo
MySQLDialect.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.hibernate.dialect.MySQLDialect
constructor

Best Java code snippets using org.hibernate.dialect.MySQLDialect.<init> (Showing top 7 results out of 315)

origin: hibernate/hibernate-orm

  @Override
  public Dialect resolveDialect(DialectResolutionInfo info) {
    final String databaseName = info.getDatabaseName();
    if ( "MySQL".equals( databaseName ) ) {
      final int majorVersion = info.getDatabaseMajorVersion();
      final int minorVersion = info.getDatabaseMinorVersion();
      if ( majorVersion < 5 ) {
        return new MySQLDialect();
      }
      else if ( majorVersion == 5 ) {
        if ( minorVersion < 5 ) {
          return new MySQL5Dialect();
        }
        else if ( minorVersion < 7 ) {
          return new MySQL55Dialect();
        }
        else {
          return new MySQL57Dialect();
        }
      }
      return latestDialectInstance( this );
    }
    return null;
  }
},
origin: com.manydesigns/portofino-mysql

public MySql5DatabasePlatform() {
  super(new MySQLDialect(), "jdbc:mysql://<host>[:<port>][/<database>]");
}
origin: ManyDesigns/Portofino

public MySql5DatabasePlatform() {
  super(new MySQLDialect(), "jdbc:mysql://<host>[:<port>][/<database>]");
}
origin: ManyDesigns/Portofino

public GoogleCloudSQLDatabasePlatform() {
  super(new MySQLDialect(), "jdbc:google:rdbms://<instance-name>/<database>");
  try {
    DriverManager.registerDriver((Driver) Class.forName("com.google.cloud.sql.Driver").newInstance());
  } catch (Exception e) {
    logger.debug("The driver to connect to Google Cloud SQL from a non-GAE application was not found", e);
  }
}
origin: org.hibernate.orm/hibernate-core

  @Override
  public Dialect resolveDialect(DialectResolutionInfo info) {
    final String databaseName = info.getDatabaseName();
    if ( "MySQL".equals( databaseName ) ) {
      final int majorVersion = info.getDatabaseMajorVersion();
      final int minorVersion = info.getDatabaseMinorVersion();
      if ( majorVersion < 5 ) {
        return new MySQLDialect();
      }
      else if ( majorVersion == 5 ) {
        if ( minorVersion < 5 ) {
          return new MySQL5Dialect();
        }
        else if ( minorVersion < 7 ) {
          return new MySQL55Dialect();
        }
        else {
          return new MySQL57Dialect();
        }
      }
      return latestDialectInstance( this );
    }
    return null;
  }
},
origin: org.hibernate/com.springsource.org.hibernate

return new MySQLDialect();
origin: org.hibernate/com.springsource.org.hibernate.core

return new MySQLDialect();
org.hibernate.dialectMySQLDialect<init>

Javadoc

Constructs a MySQLDialect

Popular methods of MySQLDialect

  • getDefaultProperties
  • registerColumnType
  • registerFunction
  • registerVarcharTypes
  • fixedPointNumberCastTarget
    Determine the cast target for Types#NUMERIC
  • floatingPointNumberCastTarget
    Determine the cast target for Types#FLOAT and Types#REAL (DOUBLE)
  • getDefaultMySQLStorageEngine
  • getEngineKeyword
  • smallIntegerCastTarget
    Determine the cast target for Types#INTEGER, Types#BIGINT and Types#SMALLINT
  • contributeTypes
  • generateIdTableExporter
  • generateIdTableSupport
  • generateIdTableExporter,
  • generateIdTableSupport,
  • getViolatedConstraintNameExtracter

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now