TA贡献317条经验 获得超240个赞
根据hibernate的文档,应该是不可以为一个类即用注解有用映射文件进行配置
You can however not declare a class several times (whether annotated or through hbm.xml). You cannot mix configuration strategies (hbm vs annotations) in an entity hierarchy either.
TA贡献6条经验 获得超4个赞
大厂算法面试真题解析32讲
¥ 68.00
32 堂微服务架构设计与落地精讲课
¥ 78.00
Java 并发编程深度解析
¥ 58.00
网络编程之Netty一站式精讲
再学经典:《Effective Java》独家解析
举报