Re: PK Velocity Template Problem

From: Mike Kienenberger (mkienen..laska.net)
Date: Mon Jun 13 2005 - 14:55:40 EDT

  • Next message: Mike Kienenberger: "Re: PK Velocity Template Problem"

    "McDaniel, Joe R." <mcdanij..igr.org> wrote:
    > I was trying to generate a Velocity template to have get/set methods
    > automatically generated for primary keys. I inserted code from the
    > non-PK area into the PK code but even after a couple of hours of trying
    > to follow the various hierarchies in the code, I was not able to get
    > what seemed like it ought to be a simple change to work properly. Here
    > is what I tried -- can someone give me the "cookbook" answer for how to
    > do this. (I know how to manually generate get/set methods using the
    > modeler.)

    What's specifically not working?

    And have you considered simplifying it to a variation of this?

        public Object getPrimaryKey()
        {
            return DataObjectUtils.pkForObject(this);
        }



    This archive was generated by hypermail 2.0.0 : Mon Jun 13 2005 - 14:53:02 EDT