users@glassfish.java.net

Re: Transient fields

From: Sahoo <Sahoo_at_Sun.COM>
Date: Mon, 22 Oct 2007 10:44:44 +0530

Looks like you are using accessType = PROPERTY in your entity and you
don't have getter method for lastPerson. In such a case, you don't have
to designate the laspPerson as transient. It won't even be picked up by
the provider as a persistent property.

Thanks,
Sahoo

glassfish_at_javadesktop.org wrote:
> I have a transient member that causes an exception by GlassFish:
> Exception Description: Cannot determine the type (class) of the property attribute [lastPerson] in entity class [class com.bluebricks.net.entity.RecipientGroup]. Ensure there is corresponding get method for that property name on the entity class.
>
> This is only used internally in the class, and is not to be persisted.
>
> I've marked it as transient in my XML:
>
> <transient name="lastPerson"/>
>
> I've also tried using the transient modifier when declaring it.
>
> Do I really need to pollute my code with a getter and a setter for this member even though it is transient and should therefore be ignored by the persistence manager?
>
> //Marius
> [Message sent by forum member 'mariusw' (mariusw)]
>
> http://forums.java.net/jive/thread.jspa?messageID=241332
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>