Re: [appfuse-user] Spring MVC or General - Begginer Question

2009-11-05 Thread gerogut
le_id")}) @LazyCollection(value = LazyCollectionOption.FALSE) public Set getBookFiles() { return bookFiles; } Gero ramzi khlil wrote: > > You may need to specify cascade attribute. > > Ramzi > > > > On Thu, Nov 5, 2009 at 12:50 PM, gerogut > wrote: >

Re: [appfuse-user] Spring MVC or General - Begginer Question

2009-11-05 Thread gerogut
w do you add BookFile to Book object ? > > Ramzi > > > > On Thu, Nov 5, 2009 at 2:57 PM, gerogut wrote: > >> >> This is what I have annotated in BookFile set. >> >> @OneToMany(cascade = {CascadeType.PERSIST, Cascad

Re: [appfuse-user] Spring MVC or General - Begginer Question

2009-11-08 Thread gerogut
object to the ModelAndView. >> Use a Map to include the book. >> >> Map objects = new HashMap(); >> objects.put("ParentBook", book); >> objects.put("bookFileList",bookManager.get(book.getId()).getBookFiles()); >> ModelAndView().addObject("bo