[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: join table class in hibernate
asookazian
do-not-reply at jboss.com
Tue Apr 28 13:17:42 EDT 2009
Hibernate supports polymorphic queries. So you can write an interface and have the two entity classes implement that interface.
When you query the interface with no restrictions/criteria in where clause, for example, you'll get all records from both tables.
read more in Ch. 5 of JPA/Hibernate book.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227345#4227345
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227345
More information about the jboss-user
mailing list