@SuppressWarnings("unchecked") private Model getSiteletEntity(SiteletProperties siteletProperties) throws ClassNotFoundException { Model m = Model.all((Class<? extends Model>) Class.forName(siteletProperties.entityTypeClassName)) .filter("id", siteletProperties.entityId) .get(); return m; }
static Query<EventVote> all() { return Model.all(EventVote.class); }
public static Query<Question> all() { return Model.all(Question.class); }
private static Query<QuizModel> all() { return Model.all(QuizModel.class); }