摘要: 常常在使用Hibernate、mybatis时候,当插入一条数据的时候,实体Bean的原空主键就赋上新值了。在JDBC中,也可以通过变相的手法来做到这点。 使用prepareStatement(String sql, int autoGeneratedKeys) 来定义PreparedStateme 阅读全文
posted @ 2019-11-16 11:30 codedot 阅读(241) 评论(0) 推荐(0) 编辑