The following comment has been added to this issue:
Author: Chris Compton
Created: Fri, 15 Apr 2005 10:20 AM
Body:
As UserType was re-packaged for Hibernate 3, this is broken again. I changed
the following in HibernateTagsHandler.hasCompositeId_Impl:
From:
if (typeClass != null) {
isUserType = typeClass.isA("cirrus.hibernate.UserType") ||
typeClass.isA("net.sf.hibernate.UserType");
}
To:
if (typeClass != null) {
isUserType = typeClass.isA("cirrus.hibernate.UserType") ||
typeClass.isA("net.sf.hibernate.UserType ||
typeClass.isA("org.hibernate.usertype.UserType");
}
This seemed to correct the problem.
---------------------------------------------------------------------
View this comment:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-343?page=comments#action_16379
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/browse/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
Original Estimate: 0 minutes
Time Spent: Unknown
Remaining: 0 minutes
Project: XDoclet
Components:
Hibernate Module
Fix Fors:
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: Fri, 15 Apr 2005 10:20 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/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