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:
>
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
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