Hi,
just guessing here, but do you mean lost after passivation/activation? or
lost when?
If on passivation/activation this is because primitives are not Serializable
(However if the class implements Serializable? Heck, who knows this?).
Burkhard
----- Original Message -----
From: "jK.MkIII" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 1:39 PM
Subject: Re: [JBoss-user] Primitive Types in Entity beans
> Miguel Angel Medina Lopez wrote:
> Hi:
> I'm implementing an entity bean that manage persintence (BMP). I declare
> the entity variables with primitive types like float and boolean.
>
> The problem is that the values of these variables seem to be lost, but
> if I use a object from Float class (an not from float type) it's work
> well.
>
> Is that normal? I always must use java classes and not primitive types?
>
> Hmm? With BMP (Bean Managed Persistency) you can have your variable stored
in whatever format you wish, even convert them to gifs if you wish.. because
you will be doing SQL calls (or what ever) that store and load them.
> Are you sure you aren't talking about CMP (Container Managed Persistency)
where container handles stuff that keeps entity beans persistent? Haven't
worked with them yet so can't answer from top of my head.
>
> --
> jK.MkIII
>
> _______________________________________________ JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user