Hibernate should complain about unsupported mapping configurations
------------------------------------------------------------------
Key: HHH-2026
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2026
Project: Hibernate3
Type: Improvement
Reporter: Andrea Aime
Attachments: TablePerClassReport.zip
http://www.hibernate.org/hib_docs/v3/reference/en/html/inheritance.html#i...
states that <union-subclass> and <many-to-one> with inverse=false is not
supported,
yet the configuration does not throw any exception when providing a mapping done like
this.
I'm using annotations and it took me quite some time to notice the configuration was
not
supported due to different namings, would have avoided hours of tentatives if an
exceptions was
thrown instead.
I'm attacching a test case that shows the problem (configuration accepted, then
breakages
at runtime). Just add the libraries, or run mvn eclipse:eclipse if you have maven2.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira