Make sure you write a client of this API, I suspect Class<?>... parameterTypes might not be what you want.
On 8 avr. 2011, at 13:41, Kevin Pollet wrote: > On vendredi 8 avril 2011 at 13:13, Gunnar Morling wrote: > >> Hi, >> >> I also like https://gist.github.com/903302#file_1_method_configuration.java >> best. As we already decided to accept some breaking changes around >> ConstraintDef, I also think it's better to do other breaking changes >> now instead of later. >> >> Just one remark: we need a way to clearly identify overloaded methods. >> In addition to ConstraintDef#method(String name) from the proposal >> there should be another method like ConstraintDef#method(String name, >> Class<?>... parameterTypes). >> >> The first could be used if only one method with a given name exists, >> the latter if several overloaded methods with the same name exist. >> >> Gunnar > > Good catch, I haven't seen this case. > My thinking is that only ConstraintDef#method(String name, Class<?>... > parameterTypes) would suffice (parameterTypes is a varargs and can be empty). > > --Kevin > > _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev