1 Reply Latest reply on Jul 16, 2007 7:18 PM by Mike Finkenzeller

    Superclass of Entity getting nulled-out

    Tom Glaess Newbie

      I have an entity bean that extends another entity bean. All is fine until about 10 minutes of inactivity in the session.

      So, I log in to our app and let the session sit idle for 10 minutes. At that time, the values in the superclass all become null. The values in the subclass have not changed.

      What would cause this? The session timeout is set to 30 minutes, so there is no issue there. I've turned on the maximum logging I can and nothing is logged during that 10 minutes. Why would the superclass values become null?

      thanks,
      tglaess

      Here are some code snippets from the two classes:

      @Entity
      @Table(name = "user")
      @Inheritance(strategy=InheritanceType.JOINED)

      public class UserBean {

      @Id
      @Column(name = "UserID")
      protected BigDecimal userID;

      @Column(name = "UserName", nullable = false)
      protected String userName;

      @Column(name = "Password", nullable = false)
      protected String password;

      ...

      @Entity
      @Table(name = "dealeruser")
      @PrimaryKeyJoinColumn(name="UserID",referencedColumnName="UserID")

      public class DealerUserBean extends UserBean implements Serializable {