Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

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


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-219
    Summary: Can't create composite-id for Hibernate 
       Type: Bug

     Status: Assigned
   Priority: Major

 Time Spent: Unknown
   Estimate: 0 minutes

    Project: XDoclet
  Component: None
   Versions:
             1.2 Beta 3

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Matt Raible

    Created: Tue, 31 Dec 2002 6:00 AM
    Updated: Tue, 31 Dec 2002 6:00 AM

Description:
I don't know if this is a hibernate bug, or an XDoclet bug, but here's my problem:

I have 2 rows in my "user" table and I expect to get two rows of data back.  However, 
the following query returns two items in the list, but they're the same:

List users = (List) ses.find("from cct_user in class 
com.cable.comcast.dmc.itd.cct.persistence.User where cct_user.userId=?", userId, 
Hibernate.STRING);

Is this because userId is the named in User.hbm.xml as the primary key?  I tried to 
create a composite-id element, which is what it is in the database, but XDoclet 
doesn't seem to let me.  I added two @hibernate.id tags to two different getters, but 
that just generated two different id elements in my xml mapping file.

Also, JIRA needs a "Hibernate" component for this module.


---------------------------------------------------------------------
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:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to