com.cherokeesoft.db.utils.api.UpdateModelDao Maven / Gradle / Ivy
package com.cherokeesoft.db.utils.api;
import com.cherokeesoft.db.utils.exception.DataException;
import org.springframework.transaction.annotation.Transactional;
import java.util.Arrays;
import java.util.Collection;
@Deprecated
public interface UpdateModelDao {
int batchUpdate(Collection models) throws DataException;
default int update(MODEL model) throws DataException {
return batchUpdate(Arrays.asList(model));
}
}