This content has been marked as final. 
    
Show                 2 replies
    
- 
        1. Re: join table class in hibernateasookazian Apr 28, 2009 1:17 PM (in response to hpacheco)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.
- 
        2. Re: join table class in hibernatehpacheco May 4, 2009 8:08 AM (in response to hpacheco)I haven't tought of that, but I wanted to do something like a "from Name" query, but that does not work since Name is not mapped. 
 I will always have to query the Name elements from the other tables and merge the results.
 Thanks,
 hugo
 
    