The following comment has been added to this issue:
Author: Andrew Stevens
Created: Wed, 23 Feb 2005 5:23 PM
Body:
Looking at the template, it seems that it still expects a single method to be
flagged with the @hibernate.id tag, but decides if it's a primitive or
composite ID based on the return type (or type parameter of the tag if there is
one). Anything extending (cirrus|net.sf).hibernate.UserType, a primitive type
(int etc.) or their java.lang.* object equivalents, or
java.math.Big(Decimal|Integer) is a primitive ID. Anything else is a composite
ID (although it must be serializable, must not be abstract, and must implement
equals() itself).
At least, that's the way I interpret the relevant template & tag handler code.
Be warned that I don't actually use Hibernate myself, though, so I might be
talking a load of nonsense :-)
---------------------------------------------------------------------
View this comment:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1276?page=comments#action_16011
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1276
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XDT-1276
Summary: Hibernate - XDoclet - Hibernate Primary key
Type: Bug
Status: Open
Priority: Major
Original Estimate: 1 day
Time Spent: Unknown
Remaining: 1 day
Project: XDoclet
Components:
Hibernate Module
Versions:
1.2.2
Assignee: xdoclet-devel (Use for new issues)
Reporter: simonber
Created: Mon, 21 Feb 2005 6:41 PM
Updated: Wed, 23 Feb 2005 5:23 PM
Description:
How can I create composite primary key with XDoclet tags on hibernate.
the tags @hibernate.id only allows to create only one attribute as a primary key
---------------------------------------------------------------------
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
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel