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

PersistencePlugin does not generate Cascade

XMLWordPrintable

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

      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; }

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

                Created:
                Updated:
                Resolved: