Package org.hibernate.jpa.event.spi

Examples of org.hibernate.jpa.event.spi.JpaIntegrator


   */
  @TemporaryWorkaround("Only needed until HHH-9451 is fixed upstream")
  private void attachPersistListener(SessionFactoryServiceRegistry serviceRegistry) {
    EventListenerRegistry eventListenerRegistry = serviceRegistry.getService( EventListenerRegistry.class );

    JpaIntegrator integrator = getIntegrator( JpaIntegrator.class, serviceRegistry );
    CallbackRegistry callbackRegistry = integrator != null ? extractCallbackRegistry( integrator ) : null;

    eventListenerRegistry.addDuplicationStrategy( new OgmPersistEventDuplicationStrategy( callbackRegistry ) );

    eventListenerRegistry.getEventListenerGroup( EventType.MERGE ).appendListener( new OgmDefaultMergeEventListener() );
View Full Code Here


   *
   * @return The built BootstrapServiceRegistry
   */
  private BootstrapServiceRegistry buildBootstrapServiceRegistry(Map integrationSettings) {
    final BootstrapServiceRegistryBuilder bootstrapServiceRegistryBuilder = new BootstrapServiceRegistryBuilder();
    bootstrapServiceRegistryBuilder.with( new JpaIntegrator() );

    final IntegratorProvider integratorProvider = (IntegratorProvider) integrationSettings.get( INTEGRATOR_PROVIDER );
    if ( integratorProvider != null ) {
      for ( Integrator integrator : integratorProvider.getIntegrators() ) {
        bootstrapServiceRegistryBuilder.with( integrator );
View Full Code Here

   *
   * @return The built BootstrapServiceRegistry
   */
  private BootstrapServiceRegistry buildBootstrapServiceRegistry(Map integrationSettings) {
    final BootstrapServiceRegistryBuilder bootstrapServiceRegistryBuilder = new BootstrapServiceRegistryBuilder();
    bootstrapServiceRegistryBuilder.with( new JpaIntegrator() );

    final IntegratorProvider integratorProvider = (IntegratorProvider) integrationSettings.get( INTEGRATOR_PROVIDER );
    if ( integratorProvider != null ) {
      integrationSettings.remove( INTEGRATOR_PROVIDER );
      for ( Integrator integrator : integratorProvider.getIntegrators() ) {
View Full Code Here

   *
   * @return The built BootstrapServiceRegistry
   */
  private BootstrapServiceRegistry buildBootstrapServiceRegistry(Map integrationSettings) {
    final BootstrapServiceRegistryBuilder bootstrapServiceRegistryBuilder = new BootstrapServiceRegistryBuilder();
    bootstrapServiceRegistryBuilder.with( new JpaIntegrator() );

    final IntegratorProvider integratorProvider = (IntegratorProvider) integrationSettings.get( INTEGRATOR_PROVIDER );
    if ( integratorProvider != null ) {
      for ( Integrator integrator : integratorProvider.getIntegrators() ) {
        bootstrapServiceRegistryBuilder.with( integrator );
View Full Code Here

   *
   * @return The built BootstrapServiceRegistry
   */
  private BootstrapServiceRegistry buildBootstrapServiceRegistry(Map integrationSettings) {
    final BootstrapServiceRegistryBuilder bootstrapServiceRegistryBuilder = new BootstrapServiceRegistryBuilder();
    bootstrapServiceRegistryBuilder.with( new JpaIntegrator() );

    final IntegratorProvider integratorProvider = (IntegratorProvider) integrationSettings.get( INTEGRATOR_PROVIDER );
    if ( integratorProvider != null ) {
      for ( Integrator integrator : integratorProvider.getIntegrators() ) {
        bootstrapServiceRegistryBuilder.with( integrator );
View Full Code Here

   *
   * @return The built BootstrapServiceRegistry
   */
  private BootstrapServiceRegistry buildBootstrapServiceRegistry(Map integrationSettings) {
    final BootstrapServiceRegistryBuilder bootstrapServiceRegistryBuilder = new BootstrapServiceRegistryBuilder();
    bootstrapServiceRegistryBuilder.with( new JpaIntegrator() );

    final IntegratorProvider integratorProvider = (IntegratorProvider) integrationSettings.get( INTEGRATOR_PROVIDER );
    if ( integratorProvider != null ) {
      for ( Integrator integrator : integratorProvider.getIntegrators() ) {
        bootstrapServiceRegistryBuilder.with( integrator );
View Full Code Here

TOP

Related Classes of org.hibernate.jpa.event.spi.JpaIntegrator

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.