我在程序中使用annotation. 但是为什么运行的时候还是会提示缺少hbm文件呢?使用annotation不是就可以不需要hbm文件吗?
解决方案 »
- 求ssh2框架web开发的HR权限管理解决方案!
- 如何获得项目的路径
- 一个简单servlet+jsp+javabean报错 405 HTTP method POST is not supported by this URL
- 求一数据库数据导出excel问题思路........
- 请教 MAVEN 错误 ……急
- 关于jsp的 请高手指教
- 将CS的dll封装成BS的OCX,需要哪些步骤(及内部简单原理)?
- 验证的问题
- 如何在STRUTS FORM中接受数据封装成类
- 实现多种客户端授权功能,使用什么方式?
- java.lang.reflect.InvocationTargetException这个是什么错误呢
- 菜鸟问题
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<!-- Generated by MyEclipse Hibernate Tools. -->
<hibernate-configuration>
<session-factory>
<property name="dialect">
org.hibernate.dialect.MySQLDialect
</property>
<property name="connection.url">
jdbc:mysql://localhost:3307/users
</property>
<property name="connection.username">root</property>
<property name="connection.password">root</property>
<property name="connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="myeclipse.connection.profile">
mysqlusers
</property>
<property name="format_sql">true</property>
<property name="show_sql">true</property>
<property name="current_session_context_class">thread</property>
<mapping class="com.b510.examples.Product" />
<mapping class="com.b510.examples.Category" />
</session-factory>
</hibernate-configuration>楼主不妨试试验证一下http://www.cnblogs.com/hongten/archive/2011/07/20/2111773.html