I have been trying to migrate a database from sybase to Mysql.
This is my approach:
- Generate pojo classes from my sybase database using hibernate in eclipse
- Use these pojo classes to generate the schema in mysql database
- Then somehow migrate the data from sybase to mysql
I guess this approach should work??? Please let me know if there is any better or easier approach.
The thing is I am not even able to get the first step done.
- I added hibernate plugin in eclipse from this link: [http://download.jboss.org/jbosstools/updates/stable/][1]
- I added sybase jar file to my project classpath
- Then I added hibernate console configuration file
- Then I added hibernate configuration file
- Then I added hibernate code generation configuration
When I try to run the code generation configuration file, I am getting java.lang.NullPointerException and I have no idea how to fix it.
I searched a lot of forums, tried to google it, but I not able to find any solution. Can anybody tell me what mistake I am making here or point to some hibernate tutorial for eclipse??