mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
start at 1 since 0 % 0 is 0
This commit is contained in:
@@ -38,7 +38,7 @@ public abstract class GenericDAO<T extends AbstractModel> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void saveOrUpdate(Collection<? extends AbstractModel> models) {
|
public void saveOrUpdate(Collection<? extends AbstractModel> models) {
|
||||||
int i = 0;
|
int i = 1;
|
||||||
EntityManagerImpl impl = (EntityManagerImpl) em.getDelegate();
|
EntityManagerImpl impl = (EntityManagerImpl) em.getDelegate();
|
||||||
Session session = impl.getSession();
|
Session session = impl.getSession();
|
||||||
for (AbstractModel model : models) {
|
for (AbstractModel model : models) {
|
||||||
|
|||||||
Reference in New Issue
Block a user