/** * Saves uploads to database * * <p>Note: container view such as AnnouncementView must call update method before calling this * save method */ public void save(boolean create) { if (!readyToSave) { super.error("Upload objects are not ready to save"); LOG.error( "Upload objects are not ready to save, container view failed to call update method"); } // check duplicate uploads especially in edit mode if (create) { super.getBasebo().persist(uploads); } else { super.getBasebo().update(uploads); } readyToSave = false; }