Oren

Results 5 issues of Oren

希望能加入一个手机模式发布博客,那就能当正宗的博客玩耍了

**1. 我在关联查询的时候没有正确返回数据,返回的sql语句放到数据库中查询是有数据的,也没有抛出异常** ![image](https://user-images.githubusercontent.com/43240938/102014844-18c54380-3d93-11eb-9fed-acae16715944.png) ![image](https://user-images.githubusercontent.com/43240938/102014854-28448c80-3d93-11eb-8444-e53bd07d5c4d.png) ![image](https://user-images.githubusercontent.com/43240938/102014919-79548080-3d93-11eb-9d89-63ca401367a9.png) **2. 我的实体类与操作语句** ![image](https://user-images.githubusercontent.com/43240938/102014957-9a1cd600-3d93-11eb-88f4-1709b7a494ea.png) ![image](https://user-images.githubusercontent.com/43240938/102014966-a1dc7a80-3d93-11eb-8209-f9ceb42f41bc.png) ![image](https://user-images.githubusercontent.com/43240938/102014978-a7d25b80-3d93-11eb-82a8-2a0854048937.png)

![image](https://user-images.githubusercontent.com/43240938/101987964-da1b8480-3cd1-11eb-8ea3-7001cb7faed1.png) #### 关联查询出现了`java.lang.NullPointerException` 1. 进行一对多查询时报null指针异常 ``` Member.queryAll(Member.HAS_MANY_ORDERS); ``` 2. 查询之后日志打印的sql可以直接放到数据库查询 ``` SELECT * FROM users_login_logs WHERE user_id IN (1,17,18) ``` #### 我做的尝试 1. 检查数据库字段与类属性是否拼写错 1. 数据库与类对应 2. 单表分别查询(都没问题)

bug
enhancement

![image](https://user-images.githubusercontent.com/43240938/101988935-d428a200-3cd7-11eb-90e8-30a1dfa6f2fd.png) ![image](https://user-images.githubusercontent.com/43240938/101988941-e3a7eb00-3cd7-11eb-9ca9-6d30d618913e.png) 1. 我的表中有一个字段与接下来关系字段名重复我就修改实体类中的字段名并使用`@Column`指定数据库字段名 2. 出现异常说类型不符合 **`AnswerLog.answer, because setter method requires Answer, but give a String(??)`** #### 我的尝试 1. 我数据库字段类型使longtext 修改了类型还是不行 #### 我是二次开发 不能修改表字段名

### Chat2DB Version 1.0.11 ### Describe the bug MAC Intel 没办法打开SQLite数据库,无法拖拽打开,也没有文件选择

bug