Hibernate, net.sf.hibernate.cfg.Configuration, hibernate.cfg.xml and "update schema"
posted 7 years ago
I have a problem when trying to update schema using hibernate. I searched the internet and I found a way to do it using .hbm.xml files. You can the method here and here.
In Ant we are using update schema task without .hbm.xml files, so I suppopse there should be way to do it even in Java. I wanted to do it using following piece of code
This piece of code threw an Exception on line 23. I don't know how can I tell where I have hibernate configuration file. I tried even absolute path to the file but it didn't work as well. I'm using Spring, Hibernate and Tomcat 5.5.
Any help on this would be greatly appreciated.
Thanks in advance,