From: <leg...@at...> - 2003-07-10 06:59:43
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-172 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-172 Summary: multiple discriminator-value for subclass Type: New Feature Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.0.2 Assignee: Reporter: Ludovic Orban Created: Thu, 10 Jul 2003 1:59 AM Updated: Thu, 10 Jul 2003 1:59 AM Environment: any/all Description: It would be nice to allow a class or a subclass to have multiple possible discriminator values. Hibernate would need to map the same subclass to multiple values and the resulting unmapped values to the root class (or some other subclass), using a mapping that could look like this: <class name="pkg.RootObject" table="SOME_TABLE" discriminator-value="*"> ... <discriminator column="TYPE" type="integer" /> ... <subclass name="pkg.SubClassA" discriminator-value="12, 13"> <subclass name="pkg.SubClassB" discriminator-value="45"> </class> --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |