Scenario:
entity
entity
field reference
focus
field set
controller all
This creates standard CRUD scaffolding for people and teams. When creating / updating a team, there is a list for the participants, but the changes are not saved.
The workaround for this is to change setMembers in Team_Roo_JavaBean.aj:
public void Team.setMembers(Set<Person> members) {
this.members = members;
for (Person person : members) {
person.setTeam(this);
}
}
(added loop to update all referenced people, you need to update these dereferenced names ...)
Why do we need changes to this [template] code?
source
share