To create DTO's (lighter object, that don't map the whole table/jointable of an object) it should be possible to map multiple entities to the same table.
This would be a very convenient way to create DTO's!
Right now it's not possible to create a schema like this due to the following exception:
Caused by: org.hibernate.DuplicateMappingException: Duplicate table mapping SubClass1
Could this become a warning instead of an exeception?
Or a @IgnoreDuplicateTableMapping annotation of some sort?
See also the following stackoverflow issue that goes into more detail:
There are also two other read-only alternatives.
The HQL/JPQL new operator:
The JPA construct API: