Search:

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

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    3,316

    just write a demo class to test it.

    just write a demo class to test it.
  2. Replies
    7
    Views
    1,080

    how you deploy your application? standalone...

    how you deploy your application? standalone application or deployed in the container(tomcat?)?
  3. Replies
    7
    Views
    1,080

    I think so.

    I think so.
  4. Replies
    3
    Views
    645

    show me the spring configuration file please.

    show me the spring configuration file please.
  5. Replies
    7
    Views
    1,080

    did you add hibernate.jar to the project's...

    did you add hibernate.jar to the project's classpath? or check the version of hibernate.jar.
  6. Replies
    4
    Views
    1,001

    ok, thank you very much, Bron !

    ok, thank you very much, Bron !
  7. Replies
    4
    Views
    1,001

    Bron, thanks for your reply, my question is: why...

    Bron, thanks for your reply, my question is: why could not do like following:

    public class Person {
    private Person spouseRef;

    // getters and setters.
    }

    I tried it and it's OK.
  8. Replies
    4
    Views
    1,001

    P-namespace problem,need help!

    When reading spring reference, some words puzzled me:

    Please note that the p-namespace is not quite as flexible as the standard XML format - for
    example particular, the 'special' format used to...
  9. Replies
    7
    Views
    1,942

    Thanks for your reply!

    Thanks for your reply!
  10. Replies
    7
    Views
    1,942

    STS 2.0 charges free or not?

    Can anyone tell me that STS 2.0 charges free or not?

    the following words from "http://www.springsource.com/node/1384".
    what's this mean?

    Pricing and availability
    STS 2.0 is available for free...
  11. you started two transactions with listForms...

    you started two transactions with listForms method, and they did not do propagation properly.
  12. can you alternative PROPAGATION_REQUIRED to...

    can you alternative PROPAGATION_REQUIRED to PROPAGATION_SUPPORTS, and try to run your application and then tell me your result?
  13. <property name="target">
    <bean class="org.springframework.aop.framework.ProxyFactoryBean">
    <property name="target"><ref bean="quickSearchManagementServiceTarget"/></property>...
  14. Replies
    13
    Views
    4,348

    I am very grateful to you for your advice.

    I am very grateful to you for your advice.
  15. Replies
    13
    Views
    4,348

    make the datasource bean prototype. but then you...

    make the datasource bean prototype. but then you must destory the old datasource bean immediately after you discard it. In this situation maybe you want to change datasource between various ones.

    ...
  16. Replies
    13
    Views
    4,348

    what is your requirement? changes between...

    what is your requirement?

    changes between several datasources?
    or
    changes between a lot?
  17. Replies
    13
    Views
    4,348

    no, datasource bean should be singleton, so there...

    no, datasource bean should be singleton, so there is no effect when you reset System property because the datasource instance is already be there.

    maybe you should config another datasource bean,...
  18. Replies
    3
    Views
    961

    you lovely guy! It will keep data in...

    you lovely guy!

    It will keep data in consistent state.
  19. Replies
    3
    Views
    1,004

    you could also use declarative transaction in dao...

    you could also use declarative transaction in dao layer.

    annotate your method(s) with @Transactional, and you can set your rollback rule by its property. like...
  20. Replies
    13
    Views
    4,348

    I got it! see my demo:

    I got it!



    see my demo:
    <bean id="dataSouce" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
    <property name="driverClassName" value="com.mysql.jdbc.Driver"/>...
  21. Replies
    13
    Views
    4,348

    In hibernate configuration file, you can use...

    In hibernate configuration file, you can use ${XXX} to replace the value, for example:

    <property name="hibernate.connection.username">${username}</property>

    and you should set "username" as...
  22. @Transactional public void methodName() { ...

    @Transactional
    public void methodName()
    {
    ......
    Ticket ticket = .........
    ......
    User user = ticket.getUser();
    ......
    }
  23. You can do operations in one transaction using...

    You can do operations in one transaction using spring transaction management.
  24. Replies
    6
    Views
    1,423

    Let me have look at your code, ok?

    Let me have look at your code, ok?
  25. Replies
    6
    Views
    1,423

    For your first error, you can remove the second...

    For your first error, you can remove the second "import ..." statement, and let IDE auto import it.

    For the second error, because that your UserService class not extends HibernateDaoSupport, so...
Results 1 to 25 of 31
Page 1 of 2 1 2