Class SubqueryEntityResolver


  • public class SubqueryEntityResolver
    extends Resolver
    This Resolver retrieves the type for an abstract schema name (entity name) if it can be resolved otherwise a derived path will be assumed. This Resolver is used within a subquery and it handles the following two cases.

    The "root" object in the subquery is an unqualified derived path:

     UPDATE Employee SET name = 'JPQL'
     WHERE (SELECT a FROM addr a)
    and The "root" object in the subquery is an entity:
     UPDATE Employee SET name = 'JPQL'
     WHERE (SELECT a FROM Address a)
    Since:
    2.5
    Version:
    2.5
    Author:
    Pascal Filion
    • Method Detail

      • getAbstractSchemaName

        public java.lang.String getAbstractSchemaName()
        Returns the name of the entity to resolve.
        Returns:
        The entity name, which is never null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object