Project

General

Profile

« Previous | Next » 

Revision 2a3d1ef0

Added by Andreas Kohlbecker almost 7 years ago

ref #6687 attempt to get rid of the hibernate.event.merge.entity_copy_observer=allow - not working yet

View differences:

src/main/java/eu/etaxonomy/vaadin/mvp/AbstractEditorPresenter.java
31 31
    @Autowired
32 32
    protected ApplicationEventPublisher eventBus;
33 33

  
34
    /**
35
     * This method is called directly before setting the bean as item data source to
36
     * the field group of the editor.
37
     * <p>
38
     * Override this method to pre-process the bean if needed. This can be the case if
39
     * you are using a persistence layer with short running session like Hibernate.
40
     *
41
     * @param bean
42
     * @return
43
     */
44
    protected DTO prepareAsFieldGroupDataSource(DTO bean){
45
        return bean;
46
    }
47

  
34 48
    @EventListener
35 49
    public void onEditorPreSaveEvent(EditorPreSaveEvent<DTO> preSaveEvent){
36 50
        if(!isFromOwnView(preSaveEvent)){

Also available in: Unified diff