Message:

   The following issue has been closed.

   Resolver: Matthias Germann
       Date: Sun, 3 Apr 2005 3:22 AM

Primary key classes can only be used for compound primary keys. You must 
specify the "primkey-field" parameter of the "ejb.bean" tag and remove the 
ejb.pk tag.
---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-736

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-736
    Summary: Can't use Integer as primary key with value object
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: CANNOT REPRODUCE

 Original Estimate: 30 minutes
 Time Spent: Unknown
  Remaining: 30 minutes

    Project: XDoclet
 Components: 
             EJB Module
   Versions:
             1.2 Beta 3

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Bruce Ashton

    Created: Sat, 13 Dec 2003 11:44 AM
    Updated: Sun, 3 Apr 2005 3:22 AM
Environment: any

Description:
Generated value objects assign an object to the primary key field using a 
constructor based on the name of primary key class with no arguments.

All constructors for the java.lang.Integer require an argument of some kind. 
Therefore if the primary key of an entity class is an Integer the generated 
code for the value object will not compile.

I can't see any reason to assign an object to the primary key which won't be 
meaningful anyway.  In the end the proper primary key must be assigned to the 
value object using a set method.  It would probably be just as useful to assign 
a null instead.


---------------------------------------------------------------------
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
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to