congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
JaversSqlModule
Code IndexAdd Tabnine to your IDE (free)

How to use
JaversSqlModule
in
org.javers.repository.sql.pico

Best Java code snippets using org.javers.repository.sql.pico.JaversSqlModule (Showing top 2 results out of 315)

origin: javers/javers

public JaversSqlRepository build() {
  logger.info("starting SqlRepository...");
  logger.info("  dialect:                 {}", dialectName);
  logger.info("  schemaManagementEnabled: {}", schemaManagementEnabled);
  logger.info("  schemaName:              {}", schemaName);
  bootContainer();
  SqlRepositoryConfiguration config =
      new SqlRepositoryConfiguration(globalIdCacheDisabled, schemaName, schemaManagementEnabled);
  addComponent(config);
  PolyJDBC polyJDBC = PolyJDBCBuilder.polyJDBC(dialectName.getPolyDialect(), config.getSchemaName())
      .usingManagedConnections(() -> connectionProvider.getConnection()).build();
  SessionFactory sessionFactory = new SessionFactory(dialectName, connectionProvider);
  addComponent(polyJDBC);
  addComponent(sessionFactory);
  addModule(new JaversSqlModule());
  addComponent(dialectName.getPolyDialect());
  addComponent(connectionProvider);
  return getContainerComponent(JaversSqlRepository.class);
}
origin: org.javers/javers-persistence-sql

public JaversSqlRepository build() {
  logger.info("starting SqlRepository...");
  logger.info("  dialect:                 {}", dialectName);
  logger.info("  schemaManagementEnabled: {}", schemaManagementEnabled);
  logger.info("  schemaName:              {}", schemaName);
  bootContainer();
  SqlRepositoryConfiguration config =
      new SqlRepositoryConfiguration(globalIdCacheDisabled, schemaName, schemaManagementEnabled);
  addComponent(config);
  PolyJDBC polyJDBC = PolyJDBCBuilder.polyJDBC(dialectName.getPolyDialect(), config.getSchemaName())
      .usingManagedConnections(() -> connectionProvider.getConnection()).build();
  SessionFactory sessionFactory = new SessionFactory(dialectName, connectionProvider);
  addComponent(polyJDBC);
  addComponent(sessionFactory);
  addModule(new JaversSqlModule());
  addComponent(dialectName.getPolyDialect());
  addComponent(connectionProvider);
  return getContainerComponent(JaversSqlRepository.class);
}
org.javers.repository.sql.picoJaversSqlModule

Javadoc

Provides Pico beans setup for sql repositories

Most used methods

  • <init>

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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