I have a quick question regarding Hibernate entity mappings.
I have a Java project in NetBeans, using Hibernate as persistence manager, with all the default settings. I have two entity classes in my application; each of them extends the same superclass.
When executing a select query on the superclass, it takes around two and a half minutes. When executing individual queries on each of the two tables, each of them takes less than a second. How can I speed up the query on the super class? We want to be able to run a report over both tables with a single query, but the user should be able to edit each table without affecting the other - therefore we created two tables with a common super class.
I'm no Hibernate expert, so please let me know if you need any additional information.
Thanks and Regards,
"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." - George Bernard Shaw