In a fit of procrastinatory mania, I replaced ORMapMaker's parser 
with a new one built with JavaCC.  It will now parse any CREATE TABLE 
statements that are legal in SQL-92, and ignores anything that isn't 
a table definition.  The only remaining issue with the parser is that 
it doesn't know all the various datatypes that different DBs 
provide... I'll try to fix that soon.

The parser was the major issue holding up release, I think, so this 
is a good time imho to call it 2.0 beta 1.

I updated all the docs, checked everything in, and tagged it 
town-2-0-b1.  Jon, it's be great if you can check out the docs to the 
public site.  The jars are currently available at 
http://www.lorax.org/lorax/town; can you copy them over to your 
machine so that the download links will work?  Thanks :)


Other recent fixes:

Moved ORMapMaker into its own package (com.workingdogs.town.ormapmaker)

>First, the db.conf file doesn't seem to be used, since I had to edit 
>the DB.java file to enter the URL, username and password.

Fixed

>Okay, the parser is REALLY bad. :)  It croaks when I have column 
>specs that contain commas somewhere in them eg:
>gender ENUM('male','female') /* String */,

Hm, the new parser doesn't like this either, since it's not valid 
SQL-92.    It's easy to update the grammar, though... you can fix it 
yourself in sql92createtable.jj, or let me know what new rules you 
want.  I am intending to make sure it accepts anything that's legal 
in MySQL and hopefully Oracle as well.

>The lastmodifieduser thing seems to not be optional, as is mentioned 
>in the docs.  I really have no need for this and would prefer to not 
>have my tables littered with unused columns.

Fixed: If -usertable is present, the lastmodifieduser mechanism kicks 
in, otherwise it doesn't.

>Oh ya.  The id generator dies if you don't put an entry for each 
>table in MaxIDs before you start to use it.  It dies if there's no 
>record for each table in it already.

ORMapMaker now generates a maxids.sql script which creates and 
populates the table.

-ds

____________________________________________________________
David Soergel                                [EMAIL PROTECTED]
Department of Genetics                  http://www.lorax.org
Stanford University School of Medicine        (650) 303-5324
____________________________________________________________


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to