Message:
The following issue has been closed.
Resolver: Gavin King
Date: Sun, 9 Mar 2003 1:05 AM
I applied this patch. I'm not sure that the current approach to composite-ids is
optimal. Currently we overload the @hibernate.id tag. However, Hibernate itself has a
special tag just for composite-ids and probably the XDoclet module should too
(eventually).
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-343
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XDT-343
Summary: User defined type IDs are mistaken for composite IDs
Type: Improvement
Status: Closed
Priority: Major
Resolution: FIXED
Time Spent: Unknown
Estimate: 0 minutes
Project: XDoclet
Component: Hibernate Module
Fix For: 1.2 Beta 3
Versions:
1.2 Beta 3
Assignee: xdoclet-devel (Use for new issues)
Reporter: Tobin Paterson
Created: Sat, 1 Mar 2003 7:50 PM
Updated: Sun, 9 Mar 2003 1:05 AM
Description:
In 1.2Beta2 the following:
/**
* @hibernate.id
* column="id"
* generator-class="org.tobinuus.domain.hibernate.PKGenerator"
* unsaved-value="null"
* type="org.tobinuus.domain.hibernate.PKType"
* length="32"
*/
public PK getId()
{
return m_id;
}
correctly generated:
<id
name="id"
type="org.tobinuus.domain.hibernate.PKType"
length="32"
unsaved-value="null"
>
<generator class="org.tobinuus.domain.hibernate.PKGenerator">
</generator>
</id>
the current cvs version mistakes the user defined type as a composite and generates:
<composite-id
name="id"
class="org.tobinuus.domain.types.PK"
unsaved-value="null"
>
</composite-id>
---------------------------------------------------------------------
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