users@glassfish.java.net

Re: Transient fields

From: <glassfish_at_javadesktop.org>
Date: Wed, 24 Oct 2007 00:02:37 PDT

Think about it this way: you put annotations on the getters if you use property-based persistence, and on the fields for the field-based. Annotations placed on the wrond side will be either ignored or cause exceptions (as in your case). So if you don't have a getter, there is no place for the annotation.

HTH,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

http://forums.java.net/jive/thread.jspa?messageID=241820