public static void initialize ()
{
if (_DidInit) return;
JPAContext.registerQueryProcessor(new CompassQueryProcessor());
ObjectMeta meta = UIMeta.getInstance();
meta.registerAnnotationListener(Searchable.class, new ObjectMeta.AnnotationProcessor(){
public void processAnnotation(Annotation annotation, AnnotatedElement prop, List predicateList, Map propertyMap, boolean isAction)
{
if (!isAction) ObjectMeta.addTrait("Searchable", propertyMap);
}
});
meta.registerAnnotationListener(SearchableProperty.class, new ObjectMeta.AnnotationProcessor(){
public void processAnnotation(Annotation annotation, AnnotatedElement prop, List predicateList, Map propertyMap, boolean isAction)
{
if (!isAction) ObjectMeta.addTrait("SearchableProperty", propertyMap);
}
});