You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to create an object that just keeps a one-to-many association, so I created model classes like these (getters and setters removed):
@ModelpublicclassStudent {
@IdprivateLongid;
@CollectionSet(of = Pen.class)
@IndexedprivateSet<Pen> pens;
//It appears that at least one attribute class is required//@Attribute//private String name;
}
@ModelpublicclassPen {
@IdprivateLongid;
@AttributeprivateStringcolor;
}
Using these classes generated an error with JOhm 0.5.0 when you add a Pen to the Student's collection. I was able to work around the problem if I added an attribute to Student and gave it a value.
I wanted to create an object that just keeps a one-to-many association, so I created model classes like these (getters and setters removed):
Using these classes generated an error with JOhm 0.5.0 when you add a Pen to the Student's collection. I was able to work around the problem if I added an attribute to Student and gave it a value.
The text was updated successfully, but these errors were encountered: