1、错误1
Caused by: org.hibernate.AnnotationException: No identifier specified for entity: com.newcapec.foundation.model.water.WaterMeterFlowDay
这个错是因为实体类没有加主键注解
在实体类的id上加@Id注解接口
2、错误2
Encountered a duplicated sql alias [xxxx] during auto-discovery of a native-sql query
错误原因:sql中查询出多个重复的字段引起的,查看下你的sql语句是否查询字段有重复的,去掉重复的即可