Menu

Change XML file?

2004-09-02
2004-09-02
  • Nobody/Anonymous

    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.

     
    • Richard Banks

      Richard Banks - 2004-09-02

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.