Hi
For all the domain classes, I want to add created/update datetime and created/update by.
For date/time I found an addon spring-roo-addon-audit-timestamp.
This addon adds an AspectJ file where it weaves create and updated timestamp to entity.
But to add I didn't find any addon - so I added two more fields created/updated by to the same aspectJ file generated by addon spring-roo-addon-audit-timestamp.
I am using spring security for authentication. I want to get logged-in userid from the httpsession and use it in my aspectJ. I don't know how to get the httpsession object inside the AspectJ.
Questions:
1) How do get httpsession object inside AspectJ?
2) Is there is any better way to add created/updated by fields to domain classes?
3) Is it possible to create one common AspectJ for auditing timestamp and userid - and use it for all the domain classes/entities?
Can anybody help?


Reply With Quote
