Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1463

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-1463
    Summary: joined-sublcass with composite key
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: XDoclet
 Components: 
             Hibernate Module
   Versions:
             1.2.3

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Amlan Sengupta

    Created: Fri, 8 Jul 2005 10:12 AM
    Updated: Fri, 8 Jul 2005 10:12 AM
Environment: Windows Xp professional using jdk 1.4.2 and hibernate 2.1.7

Description:
The Bug is : you cannot have a joined subclass which has a joined sub class key 
of more than one columns. This when I used annotations in my java code to 
generate hibernate mapping files.


It seems to me using xdoclet you can do 

/ * @hibernate.joined-subclass table="T_D_W"
  *           dynamic-update="true"
  *           dynamic-insert="true"
  *           lazy="true"
  * @hibernate.joined-subclass-key 
  *                   column="O_ID"
  */

But you cannot define the multiple column names. I had to manually update the 
following segment of the  hbm file. 

-----------------------------------------------------------
<joined-subclass name="package.DWireAnswer" 
table="D_WIRES" 
dynamic-update="false" 
dynamic-insert="false" 
> 
        <key>
            <column name="O_ID"/>
            <column name="Q_ID"/>
        </key>

...................... 
</joined-subclass> 



---------------------------------------------------------------------
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/secure/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 the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to