Foren
Hibernat object handling servicebuilder
Liferay Question, geändert vor 12 Jahren.
Hibernat object handling servicebuilder
David H Nebinger, geändert vor 12 Jahren.
RE: Hibernat object handling servicebuilder
Liferay Legend Beiträge: 14915 Beitrittsdatum: 02.09.06 Neueste Beiträge
Even in the standard Hibernate way, you still have to follow the same process:
1. pull the hibernate object representing employee.
2. scan the set of skills in the employee pojo, removing the ones that were deselected.
3. retrieve and add the skills to the pojo that were added.
4. save the employee pojo so Hibernate will manage the set correctly.
Many-to-many relationships are always messy to deal with, but maintaining them still involves the same sort of activities...
1. pull the hibernate object representing employee.
2. scan the set of skills in the employee pojo, removing the ones that were deselected.
3. retrieve and add the skills to the pojo that were added.
4. save the employee pojo so Hibernate will manage the set correctly.
Many-to-many relationships are always messy to deal with, but maintaining them still involves the same sort of activities...