[英]Hibernate without annotation entity
Client requires a solution without @entity
annotation.客户端需要一个没有
@entity
注释的解决方案。 Is a possible to use hibernate without the @entity
annotation?是否可以在没有
@entity
注释的情况下使用 hibernate? I have hibernate.cfg.xml
file with mapping entity:我有带有映射实体的
hibernate.cfg.xml
文件:
.....
<mapping class="cz.tacr.elza.api.model.FindingAid"/>
....
See if this helps.看看这是否有帮助。 Scroll down to "Hibernate Mapping XML Configuration".
向下滚动到“休眠映射 XML 配置”。
http://www.journaldev.com/2882/hibernate-tutorial-for-beginners-using-xml-annotations-and-property-configurations http://www.journaldev.com/2882/hibernate-tutorial-for-beginners-using-xml-annotations-and-property-configurations
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.