java - Model.Finder<I, T> Deperecated Play! 2.4 -
i building application using latest version of play!. when defining finder( in model.finder) ide gives me warning finder deprecated. can't find information in documentation model.finder being deprecated of alternative using it. has experienced similar issue , know of alternative?
according github model.finder
not deprecated, 1 of constructors:
/** * @deprecated */ public finder(class<i> idtype, class<t> type) { super(null, type); }
make sure use correct constructor, pointed out @biesior:
public static finder<long, foo> find = new finder<>(foo.class);
Comments
Post a Comment