Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-398

PersistencePlugin does not generate Cascade

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 1.0.0.Beta4, 1.0.0.CR1
    • None
    • None
    • None

    Description

      This is one of those 'we could do it a different way, but it would make the generated code cleaner if...' requests

      At present the PersistencePlugin generates:

      @OneToOne
      private Profile profile;

      public Profile getProfile()

      { return this.profile; }

      public void setProfile(final Profile profile) { this.profile = profile; }

      I would instead like it to generate:

      @OneToOne(cascade = CascadeType.ALL)
      private Profile profile;

      public Profile getProfile() { return this.profile; }

      public void setProfile(final Profile profile)

      { this.profile = profile; }

      Attachments

        Activity

          People

            lincolnthree Lincoln Baxter III (Inactive)
            kennardconsulting Richard Kennard (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: