You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@deltaspike.apache.org by Gilberto <gi...@gmail.com> on 2018/09/05 16:58:42 UTC

Request new methods in the EntityPersistenceRepository interface

Hello community,

Is it possible to add two new methods in the EntityPersistenceRepository
interface?

The first is void attachAndRefresh(E entity) like the existing one void
attachAndRemove(E entity).

    public void attachAndRefresh(E entity) {
        if (!contains(entity)) {
            entity = merge(entity);
        }
        refresh(entity);
    }


The other one is already in jira issue n. 1286 [1] - Support save multiple
entities.

Regards,

Gilberto


[1] https://issues.apache.org/jira/browse/DELTASPIKE-1286