The following comment has been added to this issue:
Author: Jonathan Carlson
Created: Mon, 3 Feb 2003 11:44 AM
Body:
I think the problem was that my primkey-field started with an upper-case letter. I'm
very sorry for the extra "noise". Feel free to close this.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-278
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XDT-278
Summary: generated ValueObject w/ primkey won't compile
Type: Bug
Status: Assigned
Priority: Major
Time Spent: Unknown
Estimate: 0 minutes
Project: XDoclet
Component: EJB Module
Versions:
1.2
Assignee: xdoclet-devel (Use for new issues)
Reporter: Jonathan Carlson
Created: Thu, 30 Jan 2003 11:30 AM
Updated: Thu, 30 Jan 2003 11:30 AM
Environment: modules/src/xdoclet/modules/ejb/entity/resources/valueobject.xdt
Description:
When generating a VO that has a primkey it generates this method (formatting above
changed to preserve space):
protected boolean hasIdentity() { return IdHasBeenSet; }
However, the instance variable is idHasBeenSet (note that it starts with lower case).
I tracked it to line 267 in the valueobject.xdt. I'm not sure how to change the
primary key field name into a property name, but it must be done to have it compile:
264 protected boolean hasIdentity()
265 {
266 <XDtEjbPk:ifHasPrimkeyField>
267 return <XDtEjbPk:primkeyField/>HasBeenSet;
268 </XDtEjbPk:ifHasPrimkeyField>
Thanks!!!
Jonathan
---------------------------------------------------------------------
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:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel