|
From: Tim J. <ti...@ho...> - 2001-03-26 11:12:08
|
OK, melati 0.53.5 is now available from http://melati.org This introduces the following change: o - DSDs can now be imported into other DSDs giving some level of modularisation for Melati applications. To upgrade from Melati 0.53.4 to Melati 0.53.5 You will probably not need to make any changes, but you should be aware of the following: 1) We no longer provide a getXxxxDatabase() function in each Table and Persistent. Instead you should either just use getDatabase() or you can use getXxxxDatabaseTables() to access tables specific to your project. In particular, getPoemDatabase() is no longer available in the Poem tables/persisents. So if you call getPoemDatabase() in your code, you should change it one of getDatabase() or getPoemDatabaseTables(). Similarly, if you re-run DSD on your project Xxxx then you will need to handle any calls to getXxxxDatabase(). You can either change them to getXxxxDatabaseTables(), getDatabase(), or you can add the old function into your non-generated files: e.g. in MyTable.java add: XxxxDatabase getXxxxDatabase() { (XxxxDatabase)getDatabase(); } 2) I have tested this on several databases and although I am fairly confident that it should work, IF YOU RE-RUN DSD ON YOUR OWN DATABASES YOU MAY EXPERIENCE PROBLEMS. 3) Your .dsd file must live in the same directory as your compiled code because it is loaded as a Resource. cheers timj |