Joined: Tue Sep 28, 2004 7:14 pm Posts: 7
|
My content management system has content of a certain type siloed into tables by application. I'd like to build a query UI to allow the user to pull either all the content of a type or type content from a specific table. I'll probably use the hibernate polymorphic support to pull all the content of a type.
Is there a way to interrogate the hibernate metadata to determine the concrete classes that hibernate has mapped to a "polymorphic" interface? I could call getAllClassMetaData to retrieve all the mapped classes and then use the Java reflection API to walk the interface graph for all those classes, but I was hoping there was a more elegant way since Hibernate has obviously already done this work.
|
|