experts,

I've got a strange one for you guys.  I'm using Jboss-PRE-2.1, with
PostgreSQL 7.0, Postgres JDBC driver version 7.0.

Here's the situation.  I've got a couple of entity beans, and they all
seem to work just fine.  However, when I tried to make a java.lang.Boolean
member variable of the UserEntityBean.java (for the bean UserEntity), it
didn't deploy correctly if the field it was trying to map on to was
anything but an int4...no real error messages, just "deployment.cfg file
deleted".

So the logical thing was to NOT have my boolean fields in the database be
BOOLEAN's, but to have them be int4's instead.  No real problem here...it
doesn't matter to me what the actual type of the field in the database is.
 So I did as above, but now the following occurs:

        1)      Create new UserEntity (remote).  Set it's ActiveFlag (that's the
java.lang.Boolean variable) to new Boolean(true).  (uses setter
method...etc).  Check the database...the newly created row now has the
correct value in it's ActiveFlag field.  The ActiveFlag field is set to
"1".

        2)      Stop Jboss.  Start Jboss.

        3)      Now when I go and look up the UserEntity I just created
(UserEntityhome.findByPrimaryKey(...)), and then do a getActiveFlag()
call, THE ACTIVE FLAG IS SET BACK TO 0.  And it's set back to 0 IN THE
DATABASE!

What's going on here??  Any ideas?  And how can I map a java.lang.Boolean
onto a real boolean field?

Thanks so much!
Saul


--


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]

Reply via email to