Below are 2 methods, the LinkValue constructor and the setParentType mutator. The problem is with the order the primaryKey is being initialized, if I call the constructor it first attempts to setParentType, the setParentType sets the parent type, sets the boolean flag and then tries to set parent type on the prmaryKey. The problem is that the primary key is is null and this any attempt to call the constructor fails. Is this a known issue or am I doing something wrong with annotations?


. . .


public LinkValue( java.lang.String parentType,java.lang.Integer parentId,java.lang.String childType,java.lang.Integer childId )
   {
       setParentType(parentType);
       setParentId(parentId);
       setChildType(childType);
       setChildId(childId);
primaryKey = new com.psasoft.inventory.pk.LinkCPK(this.getParentType(),this.getParentId(),this.getChildType(),this.getChildId());
   }




. . .


   public void setParentType( java.lang.String parentType )
   {
          this.parentType = parentType;
          parentTypeHasBeenSet = true;

      primaryKey.setParentType(parentType);
   }


 . . .





-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to