When I have some changes in datatable column name but i don't want to change the code.So I change the XML file, but it still raise error. How do I reload the XML file and rebuild the ORM classes.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The XML file is only read once - when the persistence broker is first initialised. Subsequent intialise calls will clear the cache, but will not reload the mapping file.
All you should have to do is stop/restart the application to pick up the changes. The only time you need to rework your classes will be when you change the data type of a column (ie from integer to varchar, etc).
- Richard.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I have some changes in datatable column name but i don't want to change the code.So I change the XML file, but it still raise error. How do I reload the XML file and rebuild the ORM classes.
The XML file is only read once - when the persistence broker is first initialised. Subsequent intialise calls will clear the cache, but will not reload the mapping file.
All you should have to do is stop/restart the application to pick up the changes. The only time you need to rework your classes will be when you change the data type of a column (ie from integer to varchar, etc).
- Richard.