I have an annotation i'm working on (this isn't my first one and i'm
almost done with this one) where I need to add a persistent property and
use it in my enhanced code. What's the best way of doing this? I've been
digging around the T4 sources but haven't been able to find an answer to
this. So far I have:

                String idField = propertyName + "Id";
                IPropertySpecification pspec = new PropertySpecification();
                pspec.setName(idField);
                pspec.setPersistence("session");
                pspec.setLocation(location);
                pspec.setInitialValue(null);
                spec.addPropertySpecification(pspec);

then i get the getter method name with:
                String idGetter = op.getAccessorMethodName(idField);

but at runtime i get the javassist exception "[source error] Method
setWidgetId not found in ..." Any ideas?

-- 
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to