hibernate/hibernate-core — pull request #181 by luniv (2011-10-08 07:32:25+00:00)
Title: HHH-4881

Fixes https://hibernate.onjira.com/browse/HHH-4881 (and related) to the best of my knowledge. Not sure if this is the best approach, but all tests pass.

# Core
* new method in Loadable: getDiscriminatorValue() which is implemented by the 3 EntityPersister implementations (it was already being determined due to discriminatorSQLValue, just not stored)
* DiscriminatorType uses Loadable.getDiscriminatorValue() to fill the JDBC PreparedStatment parameter
* Test cases for the 3 inheritance strategies

# Entity-Manager
* PathExpressionType takes a reference to its owning PathExpression so it can use getPathIdentifier in render()
* Test case