return formEntry.getValueObject();
}
public FormEntry create(FormEntryVO formEntryVO, List<FormEntryValueVO> formEntryValueVOList, Database db) throws ConstraintException, SystemException, Exception
{
FormEntry formEntry = new FormEntryImpl();
formEntry.setValueObject(formEntryVO);
formEntry = (FormEntry) createEntity(formEntry, db);
Iterator<FormEntryValueVO> formEntryValueVOListIterator = formEntryValueVOList.iterator();
while(formEntryValueVOListIterator.hasNext())
{
FormEntryValueVO formEntryValueVO = formEntryValueVOListIterator.next();
FormEntryValue formEntryValue = new FormEntryValueImpl();
formEntryValue.setFormEntry(formEntry);
formEntry.getFormEntryValues().add(formEntryValue);
formEntryValue.setValueObject(formEntryValueVO);
formEntryValue = (FormEntryValue) createEntity(formEntryValue, db);
}
return formEntry;