我是 hibernate 的新手。我在我的项目中看到我们正在为 hibernate 使用注释,并且我们没有在任何地方定义映射类。在这个项目中我们也使用 spring。所以我的问题是如果我们使用基于注释的 hibernate 那么我们需要hbm.xml?
hibernate
hibernate ×1