Shaun
You are right. I have the same problem. I ended up removing the
relationship. I hope there is a fix soon.
|---------+---------------------------------------->
| | "Shaun" |
| | <[EMAIL PROTECTED]> |
| | Sent by: |
| | [EMAIL PROTECTED]|
| | ceforge.net |
| | |
| | |
| | 07/04/2004 02:05 |
| | Please respond to |
| | xdoclet-user |
| | |
|---------+---------------------------------------->
>------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: <[EMAIL PROTECTED]>
|
| cc:
|
| Subject: [Xdoclet-user] Value object generation for an entity with more
than one CMR reference to another entity |
>------------------------------------------------------------------------------------------------------------------------------|
Value objects that are generated by XDoclet 1.2b3, for an entity with more
than one CMR reference to another entity, do not compile. The instance
variable name within the value object that references another related value
object is simply the name of the related value object's type. Therefore,
if a value object contains multiple instance variables which reference the
same related value object, duplicate variables of the same name will be
created, resulting in code that cannot compile.
For example, if a Vehicle entity bean contains two references to a Damage
entity bean, the following VO will be generated:
public class VehicleValue
extends test.interfaces.VehicleLightValue
implements java.io.Serializable
{
private test.interfaces.DamageLightValue Damage;
private boolean DamageHasBeenSet = false;
private test.interfaces.DamageLightValue Damage;
private boolean DamageHasBeenSet = false;
...
}
The incorrect case of the generated variable names indicated that something
is wrong.
Has anyone else had a similar experience?
Cheers,
Shaun
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user