> protected Class<T> getValueClass() > { > return (Class<T>) ((ParameterizedType) > getClass().getGenericSuperclass()).getActualTypeArguments()[0]; } > > I use something similar in DAOs, idea came from here: > https://www.hibernate.org/328.html
Thanks!! Had an abstract getEntityClass() method for my repositories as well. Never liked it.. and now I am able to get rid of them :-) Piero --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org