0 Replies Latest reply on Jan 8, 2011 12:58 AM by armahdi

    how to get Identifier from identifier strategy

    armahdi

      Hello all,


      I am new to seam so my question might seem a bit confusing.
      I have an entity bean which I have declared like this:




      @Entity
      @Table(name="MyTable")
      @Identifier(name="myDB_myTable")
      public class MyownEntity{
      
      }





      Now i ma using a hibernate interceptor to actually intercept the save and load events and I want to use the identifier that I have placed on this entity. Is there any way to actually get this identifier. In the interceptor there is an onSave() method which provides which entity is being saved. I also want to know the identifier name of the entity in every case. How can I use the Seam API to get this value from the entity.


      Is there any way.
      I will appreciate your help a lot.


      Thanks
      Syed.