Thanks Harsha
That was very useful. I created a sample module that takes patient, user, and allows setting appointment .
I have a small implementation doubt. I created a table, it got populated perfectly, and the module worked perfectly as expected.
However just to test things up, I tried creating another table by just renaming the name of table in sqldiff and in my hbm.xml. When I did so,I got the following error :org.springframework.dao.InvalidDataAccessResourceUsageException
Could not execute JDBC batch update; SQL [insert into blah (start_datetime, end_datetime, patient_id, location_id, provider_id, id) values (?, ?, ?, ?, ?, ?)];
nested exception is org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
However if I rename the table name again to the original, it works fine.
I used table name as "appointment2" first time, and table got greated and populated, and module worked fine.
When I change the table name in both hbm.xml and sqldiff.xml to something else, say "blah", I get the above mentioned error, and the even the table is not created.
I wanted to try on different tables for testing purpose.
Would be great if you can give some suggestion.
Thanks and regards
Rakshit