Also note that the underlying argument about this feature is whether CayenneModeler (and consequently map.xml) should include general DB admin functions not relevant to the ORM. Even though back in 2005 I said "I am for adding more DB admin functions to the Modeler", I am still on the fence on whether it is a good idea. In this particular case I guess I won't object to a working implementation.
Andrus On Feb 16, 2011, at 2:04 PM, Andrey Razumovsky wrote: > It's not supported by Cayenne, though it's a long-standing request. If > you're willing to watch or contribute, you can follow > https://issues.apache.org/jira/browse/CAY-204 > > 2011/2/16 Marek Šabo <ms...@buk.cvut.cz>: >> Actually I would like to know whether there is any support for this in cm >> because I've been appending them manually in generated schemata. >> >> On 02/16/2011 12:40 PM, Christian Grobmeier wrote: >>> >>> Hello, >>> >>> how can I create a unique index on a column with the modeller? >>> Couldn't find any information even with google :-) >>> >>> I also could not find any info about indexing in Cayenne in general... >>> my tables are all without an index (except my primary key, which is >>> indexed by default). >>> >>> I am using Cay 3.1 + MySQL >>> >>> Thanks >>> Christian >>> >> >> -- >> Marek Šabo >> >> > > > > -- > Andrey >