/** * Adds the microblogs entry to the database. Also notifies the appropriate model listeners. * * @param microblogsEntry the microblogs entry * @return the microblogs entry that was added */ @Indexable(type = IndexableType.REINDEX) @Override public MicroblogsEntry addMicroblogsEntry(MicroblogsEntry microblogsEntry) { microblogsEntry.setNew(true); return microblogsEntryPersistence.update(microblogsEntry); }
/** * Adds the microblogs entry to the database. Also notifies the appropriate model listeners. * * @param microblogsEntry the microblogs entry * @return the microblogs entry that was added * @throws SystemException if a system exception occurred */ @Indexable(type = IndexableType.REINDEX) public MicroblogsEntry addMicroblogsEntry(MicroblogsEntry microblogsEntry) throws SystemException { microblogsEntry.setNew(true); return microblogsEntryPersistence.update(microblogsEntry); }