Sunday, May 10, 2009

Hibernate - how to add a new table

hibernate creating new table

checklist

1. create the table in the database
2. create the class only members this time
3. create the hbm.xml file with mapping of the class members to the
4. update the hibernate.cfg.xml with the new hbm file you have created
5. create the test - and make it fail (c'mon in never works on the first time )

more is comming
  • foreign keys
  • pictures
  • more detailed how to

No comments:

Post a Comment