摘要:
1、快捷键序列化: 例:private static final long serialVersionUID = 1L File -> Settings -> Editor -> Inspections -> 搜索:Serialization issues -> 选择:Serializable cl 阅读全文
摘要:
1、Hibernate里使用自定义查询SQL public List<Qcra> sQcra02(String qcra01) { String sql = "SELECT * FROM qcra WHERE qcra01 = ?"; SQLQuery sqlQuery = getSession() 阅读全文
摘要:
转载借鉴于:https://www.cnblogs.com/hahajava/p/9445480.html 1、举例,加入条件数据库字段 qcrb08 大于等于 50的数据 Criteria c = session.createCriteria(实体类.class).add(Restrictions 阅读全文