-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
i am digging arround with xdoclet1.2beta1 and now after migrating some
beans to value-objects, i see that depending beans are not updated.
For example i have to beans employee and address. Employee has a
relation to Address. I have set the value-object tags so that the
Value-Object from employee accesses the Value-Object from Address. The
generated Value class looks good. But in the CMP class following is
generated:
- -- snip ---
public void setMeldenderValue(
de.oblgmbh.jbvs.meta.interfaces.EmployeeValue valueHolder )
{
try
{
setMandant( valueHolder.getMandant() );
setNumber( valueHolder.getNubmer() );
setPhone( valueHolder.getPhone() );
{
// Checks for null aggregate
if (valueHolder.getAddress() != null)
{
java.lang.Long pk = valueHolder.getAddress().getId();
de.oblgmbh.wb.meta.interfaces.AddressLocalHome home =
de.oblgmbh.wb.meta.interfaces.AddressUtil.getLocalHome();
de.oblgmbh.wb.meta.interfaces.AddressLocal relation =
home.findByPrimaryKey(pk);
setAddress(relation);
} else {
setAddress(null);
}
}
}
catch (Exception e)
{
throw new javax.ejb.EJBException(e);
}
}
- --- snap ---
So only the relation is updated how ever, but not the Data from
Address.
best regards
Ingo Bruell
- ---
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<ICQ# 40377720>
Oldenburg PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C 953C 8FE7 C648 169E E5FC
Germany PGP-Public-Key available at pgpkeys.mit.edu
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5i
iQA/AwUBPeeusI/nxkgWnuX8EQL03wCgpQeK1H3GTwARTmLZoxsMZb9HF6wAoLMo
/2BzbLxmOEqq4n/+XHnAaglg
=jDU0
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user