Search:

Type: Posts; User: dsyliu; Keyword(s):

Search: Search took 0.04 seconds.

  1. Replies
    8
    Views
    1,361

    It goes back to my original question, how can we...

    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...
  2. Replies
    8
    Views
    1,361

    What I mean is that in the xml file you have to...

    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...
  3. Replies
    8
    Views
    1,361

    I found this article: ...

    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...
  4. Replies
    8
    Views
    1,361

    One interface with multiple impl classes??

    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...
  5. Replies
    0
    Views
    1,116

    Hibernate Native SQL Support

    Does Spring support Hibernate's <sql-insert>, <sql-update>, and <sql-delete>? If yes, please tell me how to use them.

    Thank you!
  6. Replies
    2
    Views
    10,077

    Hibernate returns strange dataset

    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,...
  7. Replies
    5
    Views
    1,198

    Costin, Thank you for the reply. I checked...

    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()...
  8. Replies
    5
    Views
    1,198

    I noticed another thing. When I set...

    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...
  9. Replies
    5
    Views
    1,198

    I have a question, does OpenSessionInViewFilter...

    I have a question, does OpenSessionInViewFilter have to be used with transaction such as HibernateTransactionManager?
  10. Replies
    6
    Views
    1,777

    Why do you have ecdata.sessionFactory thrown when...

    Why do you have ecdata.sessionFactory thrown when you defined <bean id="mySessionFactory"> ? Did you check the spelling?
  11. Replies
    5
    Views
    1,198

    OpenSessionInViewFilter not working

    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...
  12. Replies
    6
    Views
    11,241

    I got it worked. I put struts.jar and spring.jar...

    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.
  13. Replies
    6
    Views
    11,241

    I encountered a similar issue. I am using Struts...

    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...
Results 1 to 13 of 13