Re: RE: Database Generation Class
abel birya <[email protected]> Sun, 2 May 2010 16:15:24 +0300
| Newsgroups | gmane.comp.java.orm.simpleorm |
|---|---|
| Message-ID | <[email protected]> |
My class gets a list of all compiled classes and can drop-all/create-all tables if required or update tables depending on changes (if any) made during development. As I had said before, it needs thorough testing since I wrote it in such a short time and I haven't been able to do so myself. Abel On 5/1/10, [email protected] < [email protected]> wrote: > > > > What exactly does your class do? The examples create a spreadsheet from a > database. > > The missing part would use alter table statements to update an existing > schema. You can do that in a largely database independent way using JDBC > meta data. > > Anthony > > > At 06:57 PM 19/04/2010, you wrote: > > > > > >Hello to you all. > > > >I have been working since yesterday to write a class that maintains > database structure based on the simeplORM metadata. It is quite "crude" I > have to say but it seems to be working so far. It works only for mysql. I > was wondering whether anyone is interested in having a look at it as I > havent had the chance to write tests for it but I was hoping maybe another > eye might have a look and suggest or even make improvements on it. I am also > hoping that this may be a base where we can have classes such as this that > support different databases. > > > >If there is anyone who is interested please let me know so that I can mail > you a copy of the same. > > > >Kind regards. > > > >Abel > > > > Spreadsheet Detective, > Southern Cross Software Queensland Pty Limited > 54 Gerler Street > Bardon, Queensland 4065, Australia. > > Email: [email protected]<berglas%40spreadsheetdetective.com> > www.SpreadsheetDetective.com > Ph: +61 427 830248 (Australian Eastern Standard Time) > > "If the model seems correct only because the numbers look right, > then why build the model in the first place?" > > > >