Message:

   The following issue has been closed.

   Resolver: Gavin King
       Date: Sun, 9 Mar 2003 1:09 AM

Ummm. I don't really see how XDoclet could be expected to behave any differently. It 
seems a limitation of the concept of mappings-in-sourcecode. You can use your own 
merged mappings to work around this, however.
---------------------------------------------------------------------
View the issue:

  http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-351


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-351
    Summary: Unable to have many components of same class
       Type: Bug

     Status: Closed
   Priority: Minor
 Resolution: WON'T FIX

 Time Spent: Unknown
   Estimate: 0 minutes

    Project: XDoclet
  Component: Hibernate Module
   Versions:
             1.2 Beta 2

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Janne Blomqvist

    Created: Tue, 4 Mar 2003 4:18 PM
    Updated: Sun, 9 Mar 2003 1:09 AM
Environment: Hibernate 1.2.3
ant 1.5.1 (debian version)


Description:
When I have a class Foo which contains more than one component of the same class Bar, 
the hbm.xml mapping doesn't work correctly because the fields of both instances of 
class Bar get mapped to the same columns. E.g. in the mapping file:

<hibernate-mapping>
<class
   name="com.foo.Foo"
   table="foo"
>

.....

     <component
          name="onecomponent"
          class="com.foo.Bar"
        >
        <property
                name="createTime"
            type="java.util.Date"
            column="createTime"
            not-null="false"
                        unique="false"
                />
      </component>
      <component
          name="anothercomponent"
          class="com.foo.Bar"
        >
 
        <property
                name="createTime"
            type="java.util.Date"
            column="createTime"
            not-null="false"
                        unique="false"
                />

      </component>
....
</class>
</hibernate-mapping>

I.e. there is only one column for createTime although two are needed. This is 
certainly a xdoclet problem because the hibernate MapGenerator tool correctly produces 
different columnnames.


---------------------------------------------------------------------
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/xdoclet/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to