
com.denghb.eorm.impl.EormMySQLImpl Maven / Gradle / Ivy
The newest version!
package com.denghb.eorm.impl;
import com.denghb.eorm.Eorm;
import com.denghb.eorm.domain.Paging;
import com.denghb.eorm.domain.PagingResult;
import com.denghb.eorm.utils.EormUtils;
import com.denghb.utils.ReflectUtils;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
/**
* MySQL 实现
*/
public class EormMySQLImpl extends EormAbstractImpl implements Eorm {
static {
try {
Class.forName("com.mysql.jdbc.Driver");
} catch (Exception e) {
e.printStackTrace();
throw new RuntimeException("connection error");
}
}
public int insert(T domain) {
EormUtils.TableInfo table = EormUtils.getTableInfo(domain);
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy