Foros de discusión
Hibernat object handling servicebuilder
Liferay Question, modificado hace 12 años.
Hibernat object handling servicebuilder
David H Nebinger, modificado hace 12 años.
RE: Hibernat object handling servicebuilder
Liferay Legend Mensajes: 14914 Fecha de incorporación: 2/09/06 Mensajes recientes
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...