Message:

   The following issue has been re-assigned.

   Assignee: Paul Galbraith (mailto:[EMAIL PROTECTED])
---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1383

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-1383
    Summary: HibernateTagsHandler mistakenly treats Hibernate string type ids 
as composites
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: XDoclet
 Components: 
             Hibernate Module
   Versions:
             1.2.3

   Assignee: Paul Galbraith
   Reporter: Adrian Bigland

    Created: Wed, 4 May 2005 10:32 AM
    Updated: Wed, 25 May 2005 11:35 AM
Environment: Windows XP

Description:
I've seen this issue reported twice for 1.2.2 and closed.

I'm getting the same problem in 1.2.3.

I get a NullPointerException on line 169 of HibernateTagsHandler, which is in 
the void hasCompositeId_Impl(String template, boolean composite) method from 
the following @hibernate.id tag:

    /**
     * @hibernate.id
     *  name="reference"
     *  type="string"
     *  column="INVENTORY_ITEM_REFERENCE"
     *  unsaved-value="0"
     *  generator-class="assigned"
     * @hibernate.column
     *  name="INVENTORY_ITEM_REFERENCE"
     *  sql-type="VARCHAR2(20)"
     *  not-null="true"
     */
    public String getReference() {
        return this.reference;
    }

The problem is fixed by changing the type to "java.lang.String". This shouldn't 
be hitting the composite id code at all...

Looking at the posts reporting this problem for 1.2.2 the assigned developer 
says that string is not a java type. Perhaps this is a misunderstanding in the 
requirements. The type should actually be a Hibernate type - this includes java 
FQNs, but also a set of logical names for types used in Hibernate mapping files 
- string is one of these. See p 198 s 6.1.1 of Hibernate in Action and 
http://www.hibernate.org/hib_docs/v3/reference/en/html/mapping.html#mapping-types
 s 5.2.2 of Hibernate's on-line docs.


---------------------------------------------------------------------
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.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to