3 Replies Latest reply on Aug 8, 2005 4:48 PM by jactor

    transient?

      How do you say that fields should not be persistent in entity beans?

      I have fields in my entity beans that should not be persisted and they are marked as transient, but they are still written to the db. Is there a way to mark fields as "not persistent".

        • 1. Re: transient?
          darranl

          What type of entity beans? BMP, CMP 1, CMP 2 or even EJB 3.0 entities?

          • 2. Re: transient?

            The EJB 3.0 entities...

            • 3. Re: transient?

              After some digging through some information, I found that there exists a special annotation for transient fields in entity beans (@Transient).

              So even though the interface Serializable is implemented and the keyword transient is used, fields of entity beans will be persisted if thay do not contain the @Transient annotaiton...