We did use envers in one of our projects but it makes creating auditing
reports a project in itself. Besides the auditing is not of our liking. We,
being a financial organization, have to audit every thing and having so many
audit tables around is just too much. Also there is less control over the
amount of auditing. Also we have a maker-checker concept and implementing it
needs some audit data in the domain classes..

Can I do it in Javassist. I know tapestry5 will be migrating to plastic but
then I can also make upgrades to my application later.

I have a slight idea

Something like

for(String className: classNameLocator.locateClassNames(packageName)){
   CtClass ctClass = classFactoryClassPool.get(className);
   //Do whatever using javasssist
}

Am I on the right path ?

I will checkout lombok

regards
Taha



On Thu, Feb 17, 2011 at 9:23 PM, Kalle Korhonen
<kalle.o.korho...@gmail.com>wrote:

> On Thu, Feb 17, 2011 at 7:15 AM, Taha Hafeez <tawus.tapes...@gmail.com>
> wrote:
> > Back to the question. What I really want to do is provide an @Auditable
> > annotation on my domain classes and then add some fields/methods at the
> time
> > of loading the classes.
>
> Are you sure that adding the auditing data directly to your domain
> classes is a good idea? Just asking whether you've considered the
> trade-offs.
>
> If you are using Hibernate, see
> http://docs.jboss.org/envers/docs/index.html.
>
> Kalle
>
>
> > On Thu, Feb 17, 2011 at 8:12 PM, Thiago H. de Paula Figueiredo <
> > thiag...@gmail.com> wrote:
> >
> >> On Thu, 17 Feb 2011 11:33:35 -0200, Taha Hafeez <
> tawus.tapes...@gmail.com>
> >> wrote:
> >>
> >>  Hi
> >>>
> >>
> >> Hi!
> >>
> >>  There is internal support for creating new classes in tapestry ioc
> using
> >>> ClassFactory/ClassFab.
> >>>
> >>
> >> They're going to be deprecated soon and remved in the future. The
> >> replacement will be Howard's Plastic package:
> >> https://github.com/hlship/plastic.
> >>
> >> --
> >> Thiago H. de Paula Figueiredo
> >> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> >> and instructor
> >> Owner, Ars Machina Tecnologia da Informação Ltda.
> >> http://www.arsmachina.com.br
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to