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
 

Reply via email to