刚学hibernate,有很多地方不是很懂,跟着视频敲,但那个视频用的是ecplise,我用的是Myecplise,然后
他可以创建一个hbm.xml指明映射关系,然后我不行,我只能根据实体创建出表,然后我在Hibernate.cfg.xml中加入了
org.hibernate.dialect.MySQLDialect
jdbc:mysql://localhost:3306/websourse
root
123456
com.mysql.jdbc.Driver
TTT
true
true
create
然后在websource中也没见到这张表
写个测试类,运行一下,数据库自动会生成的。