Search:

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

Search: Search took 0.03 seconds.

  1. Replies
    7
    Views
    1,717

    Also I found that in my hibernate.cfg.cml...

    Also I found that in my hibernate.cfg.cml ..Autocommit is set to true .. I have changed it to false .. but no success.

    <property name="connection.autocommit">true</property>

    One basic question...
  2. Replies
    7
    Views
    1,717

    Thanks for the reply :) I have added...

    Thanks for the reply :)

    I have added proxy-target-class="true" in my applicationContext.xml
    And removed the catch() block,
    But still I am facing the same issue ., rollback is still not happening...
  3. Replies
    7
    Views
    1,717

    Roll back with HibernateDAOSupport class

    Incase of DAO s extended by HibernateDAOSupport classes, I tried transcations to work with annotation based declaration:
    -defined transaction in confg.xml
    eg




    <!-- enable the configuration...
  4. Service Class : public class Insert{ private...

    Service Class :

    public class Insert{
    private InsertDAO dao;

    @Transactional(propagation=Propagation.REQUIRES_NEW)
    public Long insertValue(abcVO abc){
    dao.insertValue(abc)
    }
    }
  5. Roll back with HibernateDAOSupport class

    Incase of DAO s extended by HibernateDAOSupport classes, I tried transcations to work with annotation based declaration:
    -defined transaction in confg.xml
    eg
    <!-- enable the configuration...
Results 1 to 5 of 5