mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#339 - Remove deprecated method - save(Collection<?> beans, Transaction transaction) ... migrate to saveAll()
This commit is contained in:
@@ -1394,14 +1394,6 @@ public interface EbeanServer {
|
||||
*/
|
||||
void save(Object bean, Transaction transaction) throws OptimisticLockException;
|
||||
|
||||
/**
|
||||
* Deprecated - please migrate to saveAll().
|
||||
*
|
||||
* Save all the beans in the collection with an explicit transaction.
|
||||
*/
|
||||
@Deprecated
|
||||
int save(Collection<?> beans, Transaction transaction) throws OptimisticLockException;
|
||||
|
||||
/**
|
||||
* Save all the beans in the collection with an explicit transaction.
|
||||
*/
|
||||
|
||||
@@ -1681,14 +1681,6 @@ public final class DefaultServer implements SpiEbeanServer {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform an update or insert on each bean in the collection. Returns the
|
||||
* number of beans that where saved.
|
||||
*/
|
||||
public int save(Collection<?> c, Transaction t) {
|
||||
return saveAllInternal(c.iterator(), t);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int saveAll(Collection<?> beans, Transaction transaction) throws OptimisticLockException {
|
||||
return saveAllInternal(beans.iterator(), transaction);
|
||||
|
||||
Reference in New Issue
Block a user