org.hibernate.search.annotations
Annotation Type Key


@Retention(value=RUNTIME)
@Target(value=METHOD)
@Documented
public @interface Key

Marks a method as a key constructor for a given type. A key is an object that uniquely identify a given object type and a given set of parameters The key object must implement equals / hashcode so that 2 keys are equals iif the given target object types are the same, the set of parameters are the same. @Factory currently works for @FullTextFilterDef.impl classes

Author:
Emmanuel Bernard
See Also:
Factory



Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved