http://www.laliluna.de/first-hibernate-example-tutorial.html

解决方案 »

  1.   

    在myeclipse下配置一个db driver 然后在db browser建立一个Create a new connection profile 通过这个和数据库相连,就能把数据库中的表直接映射到po中了
      

  2.   

    用MyEclipse Database Explorer建立与数据库的连接,也就是指定你要连接的数据库
    连接成功后就会看到数据库中的数据表,右击要映射的数据库表,选最下面的"Create Hibernate Mapping".映射文件和持久化类都生成了.
      

  3.   

    可以用XDOCLET或者在  myeclipse 中打开 hibernate视图来通过工具添加看看myeclipse的帮助文件 写的很详细的。