0 Replies Latest reply on Jan 23, 2003 7:39 AM by Gianluca Chini

    Resusing Local and LocalHome interfaces

    Gianluca Chini Newbie

      I have to implement (using session facade) the persistent logic of many simple entities with CMP.
      I thought that if I wrote the methods of the session in the way they use only the interfaces (local and localhome) that my entity beans would inherit i do it one time for all.
      All is ok, except the findByPrimaryKey method (that returns the local interfaces already mentioned) in wich JBoss throws a java.lang.ClassCastException:java.util.ArrayList.
      The Bean interface extends this generic interface.

      The others finders whose return type is collection work properly.
      I tried to deploy on JBoss 3.0.6 but the problem still remains.

      Can anyone help me!!