Regular |
|
Joined: Sat Nov 25, 2006 11:37 am Posts: 72
|
See Hibernate docs Ch 14: "Likewise, the special property class accesses the discriminator value of an instance in the case of polymorphic persistence. A Java class name embedded in the where clause will be translated to its discriminator value."
I believe this means you cannot use a Java Class object as parameter any way. But even the class name wouldn't work as this is only supported if directly embedded. When using a query parameter you have to pass in the discriminator value as defined in the mapping data for the DomesticCat entity.
|
|