为什么AppFuse中有persistence.xml和hibernate.cfg.xml两个配置文件呢?
为什么AppFuse中有persistence.xml和hibernate.cfg.xml两个配置文件呢?
可是我查看源代码,只发现用到了hibernate.cfg.xml啊。那为什么还要把persistence.xml文件放到META-INFO文件夹呢?
是确有用途?还是无意中放在那的呢?
在我看来,AppFuse貌似只是用到了jpa 的Annotation的注释,其关键的持久化操作都是hibernate封装了的,所以说persistence.xml文件在这不起作用啊
欢迎大家来讨论~~~