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

Compilation error after performing "gwt setup" in roo

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.1.0.M1
    • Fix Version/s: 1.1.0.M2
    • Component/s: @ ROO SHELL
    • Labels:
      None
    • Environment:
      maven-2.2.1-Release ,roo-1.1.0.M1 ,sts-2.3.3.M1.

      Description

      I'm trying to maintain one-to-many ,many-to-one relations on entities in my project. I'm getting compilation error after "gwt setup" .
      and my code is:

      Class1:
      @Entity
      @RooJavaBean
      @RooToString
      @RooEntity
      public class ClassA {

      private String name;

      @ManyToOne(targetEntity = ClassB.class, fetch = FetchType.LAZY)
      @JoinColumn(name = "classB_id")
      private ClassB classB;
      }
      Class2:
      @Entity
      @RooJavaBean
      @RooToString
      @RooEntity
      public class ClassB {

      private String name;
      }

      Class 3:
      @Entity
      @RooJavaBean
      @RooToString
      @RooEntity
      public class ClassC {

      private String name;
      @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
      private Set<ClassB> classB = new java.util.HashSet<ClassB>();
      }

      I'm a novice to this and thus unable to proceed forward..

      2)I actually have a very big structure (with x,y,z attributes)which i wanted to delegate in another class and thus maintain (persist) only a few attributes (x,y) of the big structure.I wanted to do it in such a way that i can extend my support for other attributes (z) in futher. Any suggestions of how i can achieve it.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              balex Ben Alex
              Reporter:
              isha isha.anjali
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: