1 Reply Latest reply on Nov 8, 2005 11:45 AM by Kabir Khan

    @Transient annotation for AOP added fields

    Greg Steckman Newbie

      I'm using AOP with classes that are to be persisted EJB3 style and/or with Hibernate annotations using field access. The EJB3 spec says all fields not annotated with @Transient will be persisted.

      As far as I can tell, fields added by the AOP compiler are not annotated as Transient. Is this correct for version 1.3.4?

      This causes all sorts of problems when trying to use those persistence mechanisms. Is there a condition where those fields should be persisted? At least in my case, they should not and an @Transient annotation would be appropriate. The workaround for now is to stick with the xml mapping files.