Search:

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

Search: Search took 0.02 seconds.

  1. Replies
    9
    Views
    1,695

    chelu, thank you very very much. You were...

    chelu,

    thank you very very much. You were absolutely correct! The problem was with my pointcut expression. I have now changed it as follows

    expression="execution(* *..*Helper.*(..))"/>

    and...
  2. Replies
    9
    Views
    1,695

    chelu, As far as I am aware the transactions...

    chelu,

    As far as I am aware the transactions are not read-only as you can see from the earlier config. Also if I do session.flush() at the end of the method things do get saved to the database. I...
  3. Replies
    9
    Views
    1,695

    chelu I have done as you suggested and if I call...

    chelu I have done as you suggested and if I call session.getFlushMode() within the method body of the transaction it returns the value NEVER. Is that the problem?
  4. Replies
    9
    Views
    1,695

    Thanks for the suggestion and I was very hopeful...

    Thanks for the suggestion and I was very hopeful it would work after reading the description in the hibernate doc. Unfortunately adding the property hasnt made any difference. An explicit...
  5. Replies
    9
    Views
    1,695

    Spring Hibernate Transactions not flushed

    Hello,

    I am using spring 2.5.6, hibernate 3.3 and tomcat 6, MySQL 5. Below is my application.xml showing database config. The problem I have is that changes that I have made to hibernate objects...
  6. Ive made the discovery that commons validation is...

    Ive made the discovery that commons validation is not required to check that e.g. a value is a float or a date. Instead you rely on spring binding errors and have a message in messages.properties.
    ...
  7. In further experimentation I have noticed the...

    In further experimentation I have noticed the following. All of the validators work fine provided the field of the underlying bean is a string. It appears as though the spring modules is doing things...
  8. Commons validation.xml only works for depends="required"

    Hello

    I am using spring 2.5.6 and am attempting to integrate commons validator so that I can have declaritive validation using validation.xml, validator-rules.xml

    I have followed the...
  9. Marten, Thanks to your help I think I'm...

    Marten,

    Thanks to your help I think I'm finally formulating in my mind the way forward.

    All my DAOs have been written assuming usage of Hibernate contextual sessions, i.e. they get the...
  10. Thanks again Marten and thats a very valid point...

    Thanks again Marten and thats a very valid point you make.

    Initially my architecture didnt use hibernate contextual sessions. Instead it used a home-made threadlocal approach whereby the session...
  11. Marten Thanks for your response. I took out...

    Marten

    Thanks for your response.

    I took out 'hibernate.current_session_context_class' and the 'hibernate.transaction.factory_class' as instructed and the result is the same. However I will...
  12. No Hibernate Session bound to thread, and configuration does not allow creation

    I have a legacy webapp which uses a servlet filter to wrap each http request as follows

    HibernateUtil.beginTransaction();
    chain.doFilter(request, response);
    (boilerplate code which...
Results 1 to 12 of 12