Implementing @OneToMany in a GWT Record subclass

2010-10-05 Thread Y2i
An Entity class participates in one-to-many relationship: @OneToMany private SetSomeClass someClass = new HashSetSomeClass(); How would I implement an EntityRecord? PropertyXXX someClass = new PropertyXXX(someClass, SomeClass.class); abstract XXXSomeClassRecord getSomeClass(); What should go

Re: Implementing @OneToMany in a GWT Record subclass

2010-10-05 Thread Thomas Broyer
On 5 oct, 18:54, Y2i yur...@gmail.com wrote: An Entity class participates in one-to-many relationship: @OneToMany private SetSomeClass someClass = new HashSetSomeClass(); How would I implement an EntityRecord? PropertyXXX someClass = new PropertyXXX(someClass, SomeClass.class); Hmm,

Re: Implementing @OneToMany in a GWT Record subclass

2010-10-05 Thread Y2i
Thanks for the reply Thomas. Properties are still there in M3, and Roo still generates them. May be they are gone in M4? Or simply they are not necessary in M3. I'll try to get rid of them. Regarding one-to-many: for now I use many-to-one and service methods to retrieve collections. Will be