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.
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.