Hibernate问题之Maven项目不打包*.hbm.xml文件
来源:互联网 发布:js confirm修改位置 编辑:程序博客网 时间:2024/05/25 05:35
问题现象:
org.hibernate.hql.ast.QuerySyntaxException: SysUserInfo is not mapped [select o from SysUserInfo o where o.organId='O00001' and o.loginName='admin']
问题原因:
Maven项目不打包*.hbm.xml文件
问题解决:
<build> <finalName>basic</finalName> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId> <version>1.0-beta-1</version> <configuration> <url>http://www.my.com:6789/manager/html</url> <server>tomcat7</server> </configuration> </plugin> </plugins> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.hbm.xml</include> </includes> </resource> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.xml</include> <include>**/*.properties</include> </includes> </resource> </resources> </build>
0 0
- Hibernate问题之Maven项目不打包*.hbm.xml文件
- Maven项目不打包*.hbm.xml文件
- Maven项目不打包*.hbm.xml文件
- Maven 项目不打包 *.hbm.xml 映射文件
- Maven 项目不打包 *.hbm.xml 映射文件
- Maven项目中不打包 *.hbm.xml 映射文件
- Maven 项目不打包 *.hbm.xml 映射文件
- Maven 项目不打包 *.hbm.xml 映射文件
- Maven 项目打包 *.hbm.xml 映射文件
- maven项目中 org.hibernate.MappingNotFoundException: resource:**.hbm.xml not found问题的解决方案
- maven项目中 org.hibernate.MappingNotFoundException: resource:**.hbm.xml not found问题的解决方案
- maven项目中 org.hibernate.MappingNotFoundException: resource:**.hbm.xml not found问题的解决方案
- Maven 项目不打包 *.xml 映射文件 的问题解决
- Hibernate 中 .hbm.xml映射文件 路径问题
- maven hibernate hibernate.cfg.xml以及 XXX.hbm.xml文件找不到
- maven工程打包找不到hbm文件
- maven工程打包找不到hbm文件
- maven 项目打包war文件 xml配置
- 从Theano到Lasagne:基于Python的深度学习的框架和库
- [C#]C#中验证sql语句是否正确(不执行语句)
- dpkg包管理器
- Salt命令大全
- 3dsMax与Unity3D坐标系同步
- Hibernate问题之Maven项目不打包*.hbm.xml文件
- ThreadLocal
- 使用ccache机制加快Android重新编译速度
- http://blog.csdn.net/lmj623565791/article/details/37970961
- 读取文件
- android.util.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at lin
- Java中遭遇的NaN
- bzoj 3275: Number
- QC ALM 11创建域、项目和用户