Package org.hibernate.persister

Examples of org.hibernate.persister.PersisterClassProvider


    );
    if ( namingStrategy != null ) {
      cfg.setNamingStrategy( namingStrategy );
    }

    final PersisterClassProvider persisterClassProvider = instantiateCustomClassFromConfiguration(
        preparedProperties,
        null,
        cfg.getPersisterClassProvider(),
        AvailableSettings.PERSISTER_CLASS_PROVIDER,
        "persister class provider",
View Full Code Here


    Persister persisterAnn = property.getAnnotation( Persister.class );
    if ( persisterAnn != null ) {
      collection.setCollectionPersisterClass( persisterAnn.impl() );
    }
    else {
      final PersisterClassProvider persisterClassProvider = mappings.getPersisterClassProvider();
      if (persisterClassProvider != null) {
        final Class<? extends CollectionPersister> persister =
            persisterClassProvider.getCollectionPersisterClass( collection.getRole() );
        if (persister != null) {
          collection.setCollectionPersisterClass( persister );
        }
      }
    }
View Full Code Here

        catch (ClassNotFoundException cnfe) {
          throw new AnnotationException( "Could not find persister class: " + persister );
        }
      }
      else {
        final PersisterClassProvider persisterClassProvider = mappings.getPersisterClassProvider();
        if ( persisterClassProvider != null ) {
          persister = persisterClassProvider.getEntityPersisterClass( persistentClass.getEntityName() );
        }
      }
    }
    if ( persister != null ) {
      persistentClass.setEntityPersisterClass( persister );
View Full Code Here

        throw new MappingException( "Could not find persister class: "
          + persisterNode.getValue() );
      }
    }
    else {
      final PersisterClassProvider persisterClassProvider = mappings.getPersisterClassProvider();
      if ( persisterClassProvider != null ) {
        final Class<? extends EntityPersister> persister = persisterClassProvider.getEntityPersisterClass(
            entity.getEntityName()
        );
        if ( persister != null ) {
          entity.setEntityPersisterClass( persister );
        }
View Full Code Here

        throw new MappingException( "Could not find collection persister class: "
          + persisterNode.getValue() );
      }
    }
    else {
      final PersisterClassProvider persisterClassProvider = mappings.getPersisterClassProvider();
      if ( persisterClassProvider != null ) {
        final Class<? extends CollectionPersister> persister =
            persisterClassProvider.getCollectionPersisterClass( collection.getRole() );
        if ( persister != null ) {
          collection.setCollectionPersisterClass( persister );
        }
      }
    }
View Full Code Here

    );
    if ( namingStrategy != null ) {
      cfg.setNamingStrategy( namingStrategy );
    }

    final PersisterClassProvider persisterClassProvider = instantiateCustomClassFromConfiguration(
        preparedProperties,
        null,
        cfg.getPersisterClassProvider(),
        AvailableSettings.PERSISTER_CLASS_PROVIDER,
        "persister class provider",
View Full Code Here

    );
    if ( namingStrategy != null ) {
      cfg.setNamingStrategy( namingStrategy );
    }

    final PersisterClassProvider persisterClassProvider = instantiateCustomClassFromConfiguration(
        preparedProperties,
        null,
        cfg.getPersisterClassProvider(),
        AvailableSettings.PERSISTER_CLASS_PROVIDER,
        "persister class provider",
View Full Code Here

TOP

Related Classes of org.hibernate.persister.PersisterClassProvider

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.