From: <leg...@at...> - 2003-11-04 18:52:14
|
The following comment has been added to this issue: Author: Max Rydahl Andersen Created: Tue, 4 Nov 2003 12:51 PM Body: hmm...i actually think that both Gavin and I have thought about the dupe being the report on the forum....I at least can't find the dupe ;) So, keeping this one open and try to fix it ;) --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-451 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-451 Summary: hbm2java is overwriting a class file with an empty one. Type: Bug Status: Assigned Priority: Major Project: Hibernate2 Versions: 2.1 Assignee: Max Rydahl Andersen Reporter: Paul Callahan Created: Mon, 3 Nov 2003 2:10 PM Updated: Tue, 4 Nov 2003 2:37 AM Environment: Red hat 9, amd pc Description: We're using hbm2java to create class files. When I set up a particular mapping, one of the class files gets overwritten. Below, the file ValueObject.java that is created in the class mapping gets overwriten by a completely empty ValueObject.java. I'm assuming MapClass mapping is creating its own ValueObject.java. <class name="KeyObject" table="ko"> <id name="id" type="string" unsaved-value="null" > <column name="id" sql-type="char(32)" not-null="true"/> <generator class="uuid.hex"/> </id> <property name="name" type="string" not-null="true"/> <property name="someField" type="string" not-null="true"/> </class> <class name="ValueObject" table="vo"> <id name="id" type="string" unsaved-value="null" > <column name="id" sql-type="char(32)" not-null="true"/> <generator class="uuid.hex"/> </id> <property name="name" type="string" not-null="true"/> <property name="someOtherField" type="string" not-null="true"/> <map name="stuff" lazy="true" > <key column="id"/> <index column="key" type="string"/> <element column="value" type="string"/> </map> </class> <class name="MapClass" table="mc"> <id name="id" type="string" unsaved-value="null" > <column name="id" sql-type="char(32)" not-null="true"/> <generator class="uuid.hex"/> </id> <map name="kvMapping" lazy="true" > <key column="id"/> <composite-index class="KeyObject" > <key-property name="name"/> <key-property name="someField"/> </composite-index> <composite-element class="ValueObject" /> </map> <property name="name" type="string" not-null="true"/> <property name="someOtherField" type="string" not-null="true"/> </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 |