I am still having errors trying to save a composite DTO.
I really am stuck here.
If I have The following DTO's/Entities:

CreditApplication
-->Business
  |---->Business Account
--->Banker
--->Guarantor

When the Session Bean is called, I get this as DTO's and none of them have
PK's.
What am I suppose to do to get these saved into the DB?
Right now I keep getting java.lang.IllegalArgumentException: argument type
mismatch but everything seems correct. The error is actually being thrown
from a generated WLS stub.




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, June 07, 2004 1:10 PM
To: [EMAIL PROTECTED]
Subject: [Xdoclet-user] HELP: Huge issues saving DTO's
Importance: High


I have a composite DTO that Struts is giving me. The DTO's do not have PK's
set yet. Then in the Entity create method, I create a GUID from the
EntityUtil. Then I am attempting to create Entities for everything in 1
method call. I can't seem to get it to work without getting FK not found
constraints.

1. When am I suppose to create the PK's for a DTO I create?
2. Do I need to explode the composite DTO in order to create Entities? Or
can I just create my main DTO's Entity, and XDoclet will provide services
for saving everything inside the composite DTO?


---
> Thanks...
> Mick Knutson
> 
> 525 Market Street, SF, CA  94103
> (415) 222-1020
> [EMAIL PROTECTED]
> MAC A0103-223
---




-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to