Re: Setting associated objects for the current model

2010-10-13 Thread Dave Newton
Glad you worked it out :) Dave On Wed, Oct 13, 2010 at 4:30 PM, Ryan Beckes wrote: > Dave, > > Thanks for the tip, it worked perfectly! To recap, I changed the addresses > mapping > >/** persistent field */ >@OneToMany(mappedBy="customer", > targetEntity=com.inftropy.plus.account.Cu

Re: Setting associated objects for the current model

2010-10-13 Thread Ryan Beckes
Dave, Thanks for the tip, it worked perfectly! To recap, I changed the addresses mapping /** persistent field */ @OneToMany(mappedBy="customer", targetEntity=com.inftropy.plus.account.Customer.model.Address.class, cascade = { CascadeType.ALL}, fetch=FetchType.EAGER) @IndexedEmbedd

Re: Setting associated objects for the current model

2010-10-12 Thread Dave Newton
I don't know about sets; personally I'd use a map so you actually have a way to access them by something meaningful, like an ID. Then you use map-based property field names (it's [] or (), with the key inside, I forget which off the top of my head). I think () is for indexed, so I'd aim for [] firs

Setting associated objects for the current model

2010-10-12 Thread Ryan Beckes
Hello, I'm using an action which implements the ModelDriven interface where my model is a hibernate POJO (e.g. Customer). In this Customer I have a OneToMany relationship with another hibernate POJO (e.g. Address)... /** persistent field */ @OneToMany(mappedBy="customer", targetEntity=com