users@glassfish.java.net

Re: [Fwd: Changes in b40]

From: Mitesh Meswani <mitesh.meswani_at_Sun.COM>
Date: Fri, 24 Mar 2006 16:53:21 -0800

Amy Roh wrote:
> CCing persistence and ejb_at_glassfish.dev.java.net.
>
> -------- Original Message --------
> Subject: Changes in b40
> Date: Fri, 24 Mar 2006 10:07:49 +0100
> From: Filippo Diotalevi <filippo.diotalevi_at_gmail.com>
> Reply-To: users_at_glassfish.dev.java.net
> To: users_at_glassfish.dev.java.net
>
>
>
> Hi,
> I've deployed last night a web application I developed with ejb3 and
> glassfish b33 on glassfish b40, and I noticed some changes.
>
> 1) @Entity has no 'access' parameter anymore (in fact, the PFD at 8.1
> does not specify an 'access' parameter), and AccessType enum is
> missing.
> How is it possible now to specify the access strategy ?
You are correct. there is no 'access' parameter anymore. The access
strategy is determined by whether you place your annotations on field or
method.
>
> 2) To persist Date and Calendar Glassfish requires to specify a
> @TemporalType(..).
> Is this really required by the PFD spec or it's just a Glassfish
> requirement? I had a very quick look to the PFD but I wasn't able to
> find this strict requirement.
It is required by the spec. See section 9.1.20
/
The Temporal annotation must be specified for persistent fields or
properties of type
java.util.Date and java.util.Calendar. It may only be specified for
fields or properties of
these type
/

Thanks,
Mitesh
>
> Thanks,
>
> --
> Filippo Diotalevi
> filippo.diotalevi_at_gmail.com
> http://www.diotalevi.com/weblog
> http://www.jugmilano.it
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>