Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1575

Error generating Embeddable classes in Cayenne Modeler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.0.1
    • 3.0.2, 3.1M3
    • Modeler
    • None
    • Linux, OS X, and probably Windows (unverified)

    Description

      When generating classes in Cayenne Modeler, the getters for Embeddables are messed up:

      public void setTimeToFlip(long timeToFlip)

      { propertyWillChange("timeToFlip", this.timeToFlip, timeToFlip); this.timeToFlip = timeToFlip; }

      public $classGen.formatJavaType(${attr.Type}) getTimeToFlip()

      { return timeToFlip; }

      Note that the setter is fine while the getter still has Velocity tokens present. This will not compile. I didn't test if this same problem exists using external generation.

      Attachments

        Activity

          People

            blacknext Michael Gentry
            blacknext Michael Gentry
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: