Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [Persistence, JBoss/CMP, Hibernate,
 Database] - Superclass of Entity getting nulled-out

scott.stark@jboss.org

2007-05-04


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 {

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043280#4043280

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043280
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.