@DeclareAnnotation( "public * org.xyz.banking.BankAccount+.*(..)" ) @NotNull String brand;
I think this is it. Is this how I can add an annotation to a field ? The field is like this. @XmlAttribute(name = "brand") protected String brand; Thanks, Mohan On Tue, Jul 7, 2015 at 9:51 PM, Andy Clement <andrew.clem...@gmail.com> wrote: > Not quite sure which bit of syntax you are after, but if you are trying to > find the annotation style equivalent of "declare @method", I’m afraid there > isn’t one. It hasn’t been implemented yet. > > cheers, > Andy > > > On Jul 7, 2015, at 5:14 AM, Mohan Radhakrishnan < > radhakrishnan.mo...@gmail.com> wrote: > > > > Hi, > > I am introducing JSR 303/349 annotations to JAXB generated code > to leverage the validations mechanism. > > > > @DeclareMethod( "* AccountService.*(..): > @Transactional(Propagation.Required)" ); > > > > Is this how it is done ? > > > > Thanks, > > Mohan > > _______________________________________________ > > aspectj-users mailing list > > aspectj-users@eclipse.org > > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > > https://dev.eclipse.org/mailman/listinfo/aspectj-users > > _______________________________________________ > aspectj-users mailing list > aspectj-users@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/aspectj-users
_______________________________________________ aspectj-users mailing list aspectj-users@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/aspectj-users