I have project that contains hibernate.cfg.xml file and 3 hbm.xml files of 3 different tabels located in MySql each hbm.xml file has a matching .java class. I got all of it as is.
Now I need to create another table and I want to generate its hbm.xml and .java files.
I added to eclipse Hibernate Tools (JBoss) but I can't understand how I do that.
I don't want to create another hibernate.cfg.xml, I want to update it to contain the new table as well.
You don't have to another hibernate.cfg.xml
config file (esp if you are just adding another table). Create a new .hbm
file, map it to the corresponding model class and add this config to the existing hibernate.cfg.xml
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.