Hello,
I am running into difficulties running queries on Hibernate mapped class/tables that have composite keys defined. When I query by criteria, I can query on all the class's properties except those that are part of the composite key. In fact when I interrogate the Hibernate class metadata via the SessionFactory, the properties in the composite key don't even show up. These tables are shared between legacy apps that won't allow changing the table structure (key setup) and and new apps using Hibernate, so I need to find a way to allow query of the properties in the composite key with Hibernate. Is there a way to do this, other than setting up a view (entity-name) and a query on it instead? What is the reason not being able to query composite key properties in Hibernate mapped classes, if that is the case?
Thanks in advance for you help,
Scott
|