Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Solution in DelegatingIntroductionInterceptor Spring Framework

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to Spring Framework.

I tried to configure advice and related classes using DelegatingIntroductionInterceptor but couldn't understand how I will use this feature.

Consider senario.

I have Person Object. My DB layer which is Hibernate method insert( Person person) object at this time which is inserted into person table in DB.

Later on if I want to implement Audit functionality for person table.I created Audit object with lastModifiedDate field. Now I want this Person object to insert lastModifiedDate without changing Person.java. I know we can use DelegatingIntroductionInterceptor but not able to use it. Can someone guide me.


 
please buy my thing and then I'll have more money:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!