Package org.hibernate.context

Examples of org.hibernate.context.TenantIdentifierMismatchException


  protected void validateExistingSession(Session existingSession) {
    final CurrentTenantIdentifierResolver resolver = factory.getCurrentTenantIdentifierResolver();
    if ( resolver != null && resolver.validateExistingCurrentSessions() ) {
      final String current = resolver.resolveCurrentTenantIdentifier();
      if ( ! EqualsHelper.equals( existingSession.getTenantIdentifier(), current ) ) {
        throw new TenantIdentifierMismatchException(
            String.format(
                "Reported current tenant identifier [%s] did not match tenant identifier from " +
                    "existing session [%s]",
                current,
                existingSession.getTenantIdentifier()
View Full Code Here


  protected void validateExistingSession(Session existingSession) {
    final CurrentTenantIdentifierResolver resolver = factory.getCurrentTenantIdentifierResolver();
    if ( resolver != null && resolver.validateExistingCurrentSessions() ) {
      final String current = resolver.resolveCurrentTenantIdentifier();
      if ( ! EqualsHelper.equals( existingSession.getTenantIdentifier(), current ) ) {
        throw new TenantIdentifierMismatchException(
            String.format(
                "Reported current tenant identifier [%s] did not match tenant identifier from " +
                    "existing session [%s]",
                current,
                existingSession.getTenantIdentifier()
View Full Code Here

TOP

Related Classes of org.hibernate.context.TenantIdentifierMismatchException

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.