[
http://opensource.atlassian.com/projects/hibernate/browse/ANN-391?page=co...
]
Andreas Pakulat commented on ANN-391:
-------------------------------------
I actually meant joined-subclass when I said table-per-class. Also I don't consider
SINGLE_TABLE+secondary-table a full workaround, because I can't put many-to-one
relationship columns into the secondary table. So I'm stuck with a complete mixture,
some relational attributes (like the foreign-key-column for relationships) have to stay in
the class-hierarchy-table and some others are going to a secondary table (this is needed
to have attributes in the subclass that are non-nullable).
SecondaryTables not recognized when using JOINED inheritance
------------------------------------------------------------
Key: ANN-391
URL:
http://opensource.atlassian.com/projects/hibernate/browse/ANN-391
Project: Hibernate Annotations
Issue Type: Bug
Affects Versions: 3.1.0.Beta10, 3.2.0.cr1
Environment: Hibernate 3.2.0CR1; db is irrelevant, as the buildSessionFactory()
fails.
Reporter: Sebastian Kirsch
Attachments: TestSecondaries.java, TestSecondaries.java
The Configuration doesn't recognize secondary tables of a super class.
Calling AnnotationConfiguration.buildSessionFactory fails, claiming that the secondary
table used in the super class cannot be found in the subclass.
Adding the secondary table to the subclass doesn't help either.
See attached JUnit test case.
--
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