Thanks for the suggestion and it got me thinking. Unfortunately I cant use AOP on this project but shall use the info for a work around. Shall post anything I come up with.
Thanks,
Ben
Type: Posts; User: benholland; Keyword(s):
Thanks for the suggestion and it got me thinking. Unfortunately I cant use AOP on this project but shall use the info for a work around. Shall post anything I come up with.
Thanks,
Ben
The problem is my DAO support is coupled to my domain objects. When hibernate loads the entity it does not insert the supporting datamapper and validator. The datamapper/DAO is used when I call...
Thanks for the reply. At the moment my code looks like this (excuse the formating ;-):
public class HibernatePreLoadListener extends DefaultPreLoadEventListener implements PreLoadEventListener ...
public class HibernateLoadListener extends DefaultLoadEventListener {
public Object onLoad(LoadEvent event,LoadEventListener.LoadType loadType)
throws HibernateException{
Object obj ; ...
This is definitely getting me closer to my solution.
It is a web app but spring is server side.
I can get my context :-) I think.
In the old style app dependency injection was achieved using...
Yes, that documentation is very comprehensive and useful but doesnt really answer my question.
Essentially what I want to do is call the context to do the injection when hibernate loads the class....
Hello All I posted the following on the hibernate forum and was told abrubtly to post it on the Spring site! :-). Anyway would appreciate any suggestions.
I have just started working with a Spring...