From: <leg...@at...> - 2003-08-26 18:12:12
|
The following comment has been added to this issue: Author: Eric Fenderbosch Created: Tue, 26 Aug 2003 12:37 PM Body: Turns out this is really easy. I edited the DTD and pointed to a local copy and got it to work w/o any code changes. Simple change <!ELEMENT composite-id ( (key-property|key-many-to-one)+ )> to <!ELEMENT composite-id (meta*, (key-property|key-many-to-one)+ )> --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-284 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-284 Summary: Add <meta attribute="extends"> to <composite-id> for hbm2java Type: Improvement Status: Unassigned Priority: Minor Project: Hibernate2 Components: toolset Versions: 2.0.2 Assignee: Reporter: Eric Fenderbosch Created: Fri, 22 Aug 2003 1:23 PM Updated: Fri, 22 Aug 2003 1:23 PM Environment: N/A Description: <class name="com.fedex.cc.objectlib.tariff.TariffAccessorialState" table="TARIFF_ACCESSORIAL"> <meta attribute="extends">PersistentState</meta> <composite-id name="id" class="com.fedex.cc.objectlib.tariff.TariffAccessorialIdentity"> <key-property name="seqId" column="SEQ_ID" type="long"/> <key-property name="tariffId" column="TARIFF_ID" type="long"/> <meta attribute="extends">PersistentIdentity</meta> </composite-id> <!-- ... ---> </class> This would generate 2 classes: public class TariffAccessorialState extends PersistentState { ... } public class TariffAccessorialIdentity extends PersistentIdentity { ... } Note that TariffAccessorialIdentity extends PersistentIdentity not PersistentState. --------------------------------------------------------------------- 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 |