congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
GenericJpaRepository$Builder.build
Code IndexAdd Tabnine to your IDE (free)

How to use
build
method
in
org.axonframework.modelling.command.GenericJpaRepository$Builder

Best Java code snippets using org.axonframework.modelling.command.GenericJpaRepository$Builder.build (Showing top 6 results out of 315)

origin: AxonFramework/AxonFramework

.eventBus(c.eventBus())
.repositoryProvider(c::repository)
.build());
origin: AxonFramework/AxonFramework

  @Bean("simpleRepository")
  public Repository<JpaAggregate> simpleRepository(EntityManagerProvider entityManagerProvider,
                           EventBus eventBus) {
    return GenericJpaRepository.builder(JpaAggregate.class)
                  .entityManagerProvider(entityManagerProvider)
                  .eventBus(eventBus)
                  .build();
  }
}
origin: AxonFramework/AxonFramework

      .eventBus(c.eventBus())
      .repositoryProvider(c::repository)
      .build();
});
origin: org.axonframework/axon-configuration

      .eventBus(c.eventBus())
      .repositoryProvider(c::repository)
      .build();
});
origin: org.axonframework/axon-configuration

/**
 * Creates a Configuration for an aggregate of given {@code aggregateType}, which is mapped to a relational
 * database using an EntityManager provided by given {@code entityManagerProvider}. The given {@code aggregateType}
 * is expected to be a proper JPA Entity.
 *
 * @param aggregateType         The type of Aggregate to configure
 * @param entityManagerProvider The provider for Axon to retrieve the EntityManager from
 * @param <A>                   The type of Aggregate to configure
 * @return An AggregateConfigurer instance for further configuration of the Aggregate
 */
public static <A> AggregateConfigurer<A> jpaMappedConfiguration(Class<A> aggregateType,
                                EntityManagerProvider entityManagerProvider) {
  AggregateConfigurer<A> configurer = new AggregateConfigurer<>(aggregateType);
  return configurer.configureRepository(
      c -> GenericJpaRepository.builder(aggregateType)
          .aggregateModel(configurer.metaModel.get())
          .entityManagerProvider(entityManagerProvider)
          .eventBus(c.eventBus())
          .repositoryProvider(c::repository)
          .build()
  );
}
origin: AxonFramework/AxonFramework

/**
 * Creates a Configuration for an aggregate of given {@code aggregateType}, which is mapped to a relational
 * database using an EntityManager provided by given {@code entityManagerProvider}. The given {@code aggregateType}
 * is expected to be a proper JPA Entity.
 *
 * @param aggregateType         The type of Aggregate to configure
 * @param entityManagerProvider The provider for Axon to retrieve the EntityManager from
 * @param <A>                   The type of Aggregate to configure
 * @return An AggregateConfigurer instance for further configuration of the Aggregate
 */
public static <A> AggregateConfigurer<A> jpaMappedConfiguration(Class<A> aggregateType,
                                EntityManagerProvider entityManagerProvider) {
  AggregateConfigurer<A> configurer = new AggregateConfigurer<>(aggregateType);
  return configurer.configureRepository(
      c -> GenericJpaRepository.builder(aggregateType)
          .aggregateModel(configurer.metaModel.get())
          .entityManagerProvider(entityManagerProvider)
          .eventBus(c.eventBus())
          .repositoryProvider(c::repository)
          .build()
  );
}
org.axonframework.modelling.commandGenericJpaRepository$Builderbuild

Javadoc

Initializes a GenericJpaRepository as specified through this Builder.

Popular methods of GenericJpaRepository$Builder

  • entityManagerProvider
    Sets the EntityManagerProvider which provides the EntityManager instance for this repository.
  • eventBus
    Sets the EventBus to which events are published.
  • repositoryProvider
    Sets the RepositoryProvider which services repositories for specific aggregate types.
  • <init>
    Creates a builder for a Repository for given aggregateType.
  • aggregateModel
  • handlerDefinition
  • lockFactory
  • parameterResolverFactory

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JCheckBox (javax.swing)
  • Top 25 Plugins for Webstorm
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