From: <leg...@at...> - 2003-11-03 20:11:14
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- 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: Unassigned Priority: Major Project: Hibernate2 Versions: 2.1 Assignee: Reporter: Paul Callahan Created: Mon, 3 Nov 2003 2:10 PM Updated: Mon, 3 Nov 2003 2:10 PM 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 |