[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Superclass of Entity getting nulled-out
tglaess
do-not-reply at jboss.com
Fri May 4 12:58:08 EDT 2007
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
More information about the jboss-user
mailing list