Re: Specifying Unique Constraints
Anthony Berglas <[email protected]>
| Newsgroups | gmane.comp.java.orm.simpleorm |
|---|---|
| Message-ID | <[email protected]> |
Only primary keys are specified in meta data. Other indexes can be created using raw CREATE INDEX statements. The reason for this is that it is a bit messy to allow for the general case of multiple indexes on multiple columns, and I don't think that it adds much value given that it is easy to just do this with raw SQL. Keeps it simple. But it could be added easily, even by yourself without touching SimpleOrm source (Just create an index object with a parameter being a list of SFieldMetas). Anthony At 07:21 AM 23/09/2008, Bruce Alspaugh wrote: >Hi Anthony, > >I hope you aren't getting tired of me asking basic questions as I >learn and explore SimpleORM. Where do you specify unique >constraints and indexes on columns in the metadata? I'm searching >through the JavaDoc and can't seem to find it. > >Thanks, > >bruce Dr Anthony Berglas, [email protected] Mobile: +61 4 4838 8874 Just because it is possible to push twigs along the ground with ones nose does not necessarily mean that is the best way to collect firewood. ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/SimpleORM/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/SimpleORM/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/