On 4/24/06, Ken Weiner <[EMAIL PROTECTED]> wrote: > I am trying to set a column as unique, but when I add a <unique> > element to <table>, the element gets added as if it were a column, and > I get the following error: > > org.apache.ddlutils.model.ModelException: The column nr. 8 in table > users has no type > at org.apache.ddlutils.model.Database.initialize(Database.java:301) > at org.apache.ddlutils.io.DatabaseIO.read(DatabaseIO.java:207) > ....
This error was posted before on this mailing list. The solution back then, I think, was to update to the newest version of DdlUtils (esp. the commons-betwixt library that DdlUtils uses). You should perhaps also add the DTD reference: <?xml version="1.0"?> <!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database.dtd"> and see if that works. Tom
