Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3525

CascadeType.ALL option is missing for ONE_TO_ONE cardinality type

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.5.RELEASE
    • Fix Version/s: None
    • Component/s: @ ROO SHELL
    • Labels:
      None

      Description

      Creating a class which is having ONE_TO_ONE cardinality is not creating cascade = CascadeType.ALL in the ONE_TO_ONE annotation.

      Command used :
      field reference --fieldName ppt --class ~.Person --type ~.Passport --cardinality ONE_TO_ONE --fetch LAZY --joinColumnName ppt_US

      Generated Code snippet:
      public class Person {

      /**
      */
      @OneToOne
      private Passport passport;

      /**
      */
      @OneToOne(fetch = FetchType.LAZY)
      @JoinColumn(name = "ppt_US")
      private Passport ppt ;
      }

        Attachments

          Activity

            People

            • Assignee:
              eruiz Enrique Ruiz (DiSiD)
              Reporter:
              pramodib pramod prabhakaran
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: