Project

General

Profile

« Previous | Next » 

Revision 1a3d66bf

Added by Andreas Kohlbecker almost 7 years ago

making use of the new RegistationService methods

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/ListPresenter.java
13 13
import org.springframework.beans.factory.annotation.Autowired;
14 14
import org.springframework.beans.factory.annotation.Qualifier;
15 15
import org.springframework.context.event.EventListener;
16
import org.springframework.transaction.TransactionStatus;
17 16

  
18 17
import com.vaadin.spring.annotation.SpringComponent;
19 18
import com.vaadin.spring.annotation.ViewScope;
......
39 38

  
40 39
    @Override
41 40
    public void handleViewEntered() {
42
        TransactionStatus tx = getRepo().startTransaction();
41
        // TransactionStatus tx = getRepo().startTransaction(); // no longer needed since AbstractPresenter is caring for tranactions in this case
43 42
        getView().populate(listRegistrations());
44
        getRepo().commitTransaction(tx);
43
        // getRepo().commitTransaction(tx);
45 44
    }
46 45

  
47 46
    /**

Also available in: Unified diff