I think that making the payload attribute optional is ok, but I also vote against making
the groups optional. As you say, it has become a very important mechanism.

And really, how much harder do this requirements make it to develop constraints?

--Hardy


On Fri, 03 Jul 2009 12:06:41 +0200, Emmanuel Bernard <emman...@hibernate.org> wrote:

I was talking to Mike Keith from Oracle the other day and he became
concerned at us adding more and more  mandatory attributes to
constraint definitions.

He was proposing to make the payload attribute optional. In other
words, custom annotations would not have to add this property,
though the spec would recommend it and all built-in annotations
would have it.
The idea is to keep life easy for constraint developers.

I am sympathetic to the idea, anybody fiercely against?

PS: Mike was also arguing for making groups optional but I am more
reluctant on that, groups has become an important mechanism in BV,
so I would keep that mandatory. Thoughts?


_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to