I would say that essentially the mappings are the part that you have to do explicitly because they are the mechanism for defining how your classes relate to your underlying database. How can any tool know automatically what database table or field a specific property of a class is supposed to map to? This is something you need to provide as the architect of the solution.
Once you have mapping files you *could* potentially generate classes or the database from these because information about both exists in the mapping. I wouldn't recommend generating classes from mappings, but it can work quite well for generating the database.
Cheers,
Symon.
|