[jboss-user] [EJB 3.0] - Re: EJB3 entity inheritance override getter in subclass

2009-06-29 Thread Wolfgang Knauf
Hi, where did you place the @Column annotations? On the field or on the getter/setter? Or did you use the JBoss defaults? You might try to place them on the field instead of the getter, then it will hopefully get the persisted value from the field, not from the property. Note that this would ch

[jboss-user] [EJB 3.0] - Re: EJB3 entity inheritance override getter in subclass

2009-06-29 Thread asafz
I changed t he code a little (wanted to create a workaround) and moved the getUser method to the father class. I'm still having the following problem: I dont want that the "nullUser" will be persist to the database, I just want it to be virtually returned to the user when the real user is null