private TableEntity(DbManager db, Class<T> entityType) throws Throwable { this.db = db; this.entityType = entityType; this.constructor = entityType.getConstructor(); this.constructor.setAccessible(true); Table table = entityType.getAnnotation(Table.class); this.tableName = table.name(); this.runOnTableCreated = table.runOnTableCreated(); this.columnMap = TableUtils.findColumnMap(entityType); for (ColumnEntity column : columnMap.values()) { if (column.isId()) { this.id = column; } } }