Hi Tobias (and everybody)
I had a terrible mistake !!!... (%$#@#$%)
I was connecting to a wrong schema in the db...
everything works fine now !!!


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tobias Frech
Sent: Monday, January 08, 2001 5:08 PM
To: jBoss
Subject: Re: [jBoss-User] Inheritance in CMP - continued (super.ejbCreate
notinvoked ???)


Hi Shahar!
Yes, it definitly works for me. Let me check again ... yes, there are
values in my database in properties that are only set in my "top" class.
So super.ejbCreate() works for me in sub ejbCreate methods.
Add some System.out.println() in your beans and see yourself what is
entered and what not.
Works for me. :-)

Cheers,
Tobias

Shahar Solomianik wrote:
>
> Hi guys (Tobias pay attention to this...).
>
> The deployment works fine.
>
> But when coming to create entities I get "javax.ejb.CreateException: Could
> not create entity:java.sql.SQLException: Invalid column type"
> It happens because jaws tries to put NULL in the primary key field.
> and why is that , you may ask ?
> Well, setting the primary key is done by selecting nextval (Oracle method
> for implementing auto-increment) from a sequence (sequence name is
supplied
> as an env-entry in ejb-jar.xml) in the super.ejbCreate method (each
derived
> entity ejbCreate method invokes super.ejbCreate()).
> Since I can check the db sequence and see that it has not been
incremented,
> I assume the "select <sequence_name>.nextval from dual" statement in the
> super class never occured !!!
> So, is there any problem invoking super method in ejbCreate ?
> Tobias, You said it worked for you, can you please refer to this message ?
>
> Thanks, Shahar.
>
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> List Help?:          [EMAIL PROTECTED]


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to