mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#341 - Remove deprecated method - insert(Collection<?> beans); ... migrate to insertAll()
This commit is contained in:
@@ -557,16 +557,6 @@ public final class Ebean {
|
||||
public static void insert(Object bean) {
|
||||
serverMgr.getDefaultServer().insert(bean);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deprecated - please migrate to insertAll().
|
||||
*
|
||||
* Insert a collection of beans.
|
||||
*/
|
||||
@Deprecated
|
||||
public static void insert(Collection<?> beans) {
|
||||
serverMgr.getDefaultServer().insertAll(beans);
|
||||
}
|
||||
|
||||
/**
|
||||
* Insert a collection of beans.
|
||||
|
||||
@@ -1504,29 +1504,12 @@ public interface EbeanServer {
|
||||
*/
|
||||
void insert(Object bean, Transaction transaction);
|
||||
|
||||
/**
|
||||
* Deprecated - please migrate to insertAll().
|
||||
*
|
||||
* Insert a collection of beans. If there is no current transaction one is created and used to
|
||||
* insert all the beans in the collection.
|
||||
*/
|
||||
@Deprecated
|
||||
void insert(Collection<?> beans);
|
||||
|
||||
/**
|
||||
* Insert a collection of beans. If there is no current transaction one is created and used to
|
||||
* insert all the beans in the collection.
|
||||
*/
|
||||
void insertAll(Collection<?> beans);
|
||||
|
||||
/**
|
||||
* Deprecated - please migrate to insertAll().
|
||||
*
|
||||
* Insert a collection of beans with an explicit transaction.
|
||||
*/
|
||||
@Deprecated
|
||||
void insert(Collection<?> beans, Transaction transaction);
|
||||
|
||||
/**
|
||||
* Insert a collection of beans with an explicit transaction.
|
||||
*/
|
||||
|
||||
@@ -1495,7 +1495,7 @@ public final class DefaultServer implements SpiEbeanServer {
|
||||
public void updateAll(Collection<?> beans) throws OptimisticLockException {
|
||||
updateAll(beans, null);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Update all beans in the collection with an explicit transaction.
|
||||
*/
|
||||
@@ -1541,16 +1541,6 @@ public final class DefaultServer implements SpiEbeanServer {
|
||||
insertAll(beans, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void insert(Collection<?> beans) {
|
||||
insertAll(beans, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void insert(Collection<?> beans, Transaction transaction) {
|
||||
insertAll(beans, transaction);
|
||||
}
|
||||
|
||||
/**
|
||||
* Insert all beans in the collection with a transaction.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user