Custom annotation to validate unique elements

I need to write custom annotation for UniqueElements. I know Hibernate provides one of these, but I need to validate by just one parameter (so can not use hashCode).

I have something like this:

@CustomAnnotatinon

List parameters;

Lets say MyParameter have id, value and type, but I have to validate unique elements only by id. Can somebody please help me?...

Read More »

By: StackOverFlow - Thursday, 20 September

Related Posts