It goes back to my original question, how can we associate one bean id to multiple impl classes in xml file? Let's say I have 2 impl classes all use the same interface. I have a factory to decide...
Type: Posts; User: dsyliu; Keyword(s):
It goes back to my original question, how can we associate one bean id to multiple impl classes in xml file? Let's say I have 2 impl classes all use the same interface. I have a factory to decide...
What I mean is that in the xml file you have to specify one bean id with one class.
<bean id="xyz" class="com.abc.xyzImpl"/>
I am wondering if there is a way to associate multiple impl classes...
I found this article:
http://blog.arendsen.net/index.php/2005/07/13/spring-instance-management-part-ii-hotswapping/
Unfortunately, I couldn't get it to work after following the...
Is it possible to link one interface with multiple impl classes in Spring? In other words, I have several similar classes, each handles similar yet slightly different tasks. I want to use factory...
Does Spring support Hibernate's <sql-insert>, <sql-update>, and <sql-delete>? If yes, please tell me how to use them.
Thank you!
I use Hibernate 3 and when I use <sql-query>, the system actually returns me interesting data structure.
If I use HibernateTemplate loadAll(Person.class), then I will get a list of Person objects,...
Costin,
Thank you for the reply. I checked and followed the javadoc but it still didn't work. I then created a TestFilter that extends OpenSessionInViewFilter and override the getSession()...
I noticed another thing. When I set HibernateTemplate.setAllowCreate() to false in my DAO, I got different exception.
Does this mean that my OpenSessionInViewFilter did not create a new...
I have a question, does OpenSessionInViewFilter have to be used with transaction such as HibernateTransactionManager?
Why do you have ecdata.sessionFactory thrown when you defined <bean id="mySessionFactory"> ? Did you check the spelling?
I use Spring 1.2.6 along with Hibernate 3.0.5 on WSAD 5.1.2. I want to load an object "A" with many-to-one relationship of "B". I know Hibernate 3 comes with lazy-loading="true" by default, and it...
I got it worked. I put struts.jar and spring.jar both under WEB-INF/lib. It did not work before because I have spring.jar under both EAR/lib and WEB-INF/lib.
I encountered a similar issue. I am using Struts with Spring on WSAD 5.1.2, and I got the following exception. I cannot change the loading policy because of the company development environment. I...