Clarification: I just mentioned this to my boss, and he reminded me
that we were trying to prevent serialization with @Transient, not
persistence, so this whole thread is pointless. Sorry for the noise. :P
-----
Jason Lee, SCJP
Programmer/Analyst
http://www.iec-okc.com
> -----Original Message-----
> From: Jason Lee
> Sent: Wednesday, January 10, 2007 8:36 AM
> To: users_at_glassfish.dev.java.net
> Subject: RE: RE: RE: Re: Persistence, ignoring a class field
>
> > Then I would say that's a bug in your JPA implementation.
> To requote
> > from the spec (section 2.1.1):
> >
> > "All non-transient instance variables that are not
> annotated with the
> > Transient annotation are persistent."
> >
> > which would imply that all *transient* instance variables
> should not
> > be persisted. The java spec doesn't specifically define
> transient as
> > applying only to serialization either:
> > http://java.sun.com/docs/books/jls/third_edition/html/classes.
> > html#8.3.1.3
>
> Very interesting. We're using Hibernate as our JPA impl, as
> Top Link Essentials (at least at the time) didn't seem to
> like sequence generators with PostgreSQL.
>
> -----
> Jason Lee, SCJP
> Programmer/Analyst
> http://www.iec-okc.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>