[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2026) Hibernate should complain about unsupported mapping configurations

Andrea Aime (JIRA) noreply at atlassian.com
Fri Aug 25 06:02:24 EDT 2006


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#inheritance-limitations
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.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list