4 Replies Latest reply on Jul 10, 2008 9:19 PM by Jason Greene

    Getting Fqn and Key out of Object.

    Navin Surtani Newbie

      I am writing a listener for JBoss Cache Searchable so that it be used to search through POJO cache. This is my Google Summer of Code project which involves integrating Hibernate Search with JBoss Cache.

      public void handleAttach(AttachedEvent event)
      Object added = event.getSource();

      // with the Core cache, I create a unique ID using Fqn and Key. How could I get a unique ID for a POJO from the listener event?

      How would I go about getting the Fqn and key? Also, would it be the same as when I annotate methods with @Detach, @FieldModified, @SetModified etc?