hibernate 实体类每个属性对应的列都是红线
解决办法:
1.点击Persistence
2 右击sessionFaccory
3.点击Assign Data Sources
4.选择你本地创建的数据库
5.OK
参考:
https://stackoverflow.com/questions/20607603/intellij-idea-12-1-6-hibernate-doesnt-resolve-table-or-column-name
https://blog.csdn.net/mr_orange_klj/article/details/78789923
https://blog.csdn.net/u014290233/article/details/54311954