/** * Adds the ratings stats to the database. Also notifies the appropriate model listeners. * * @param ratingsStats the ratings stats * @return the ratings stats that was added */ @Indexable(type = IndexableType.REINDEX) @Override public RatingsStats addRatingsStats(RatingsStats ratingsStats) { ratingsStats.setNew(true); return ratingsStatsPersistence.update(ratingsStats); }