Re: define unique index

Franck Routier <[email protected]> Tue, 02 Nov 2010 16:48:34 +0100
Newsgroups gmane.comp.java.orm.simpleorm
Organization Axège sarl
Message-ID <1288712914.3481.18.camel@franck-laptop>
Hello,

I don't think this works anymore.

DDL generation is in SDriver methods (wholeColumnSQL,
createTableSQL, ...).
So we could use recordMeta.putUserProperty(key, val) to store the DDL
modificator, and use it when generating the SQL, but AFAIK this is
something that was left apart when going to version 3.

Franck



Le mardi 02 novembre 2010 à 15:04 +0100, Guenter Wildmann a écrit :
>   
> Hello!
> 
> How do i define a unique index spanning two attributes in SimpleORM
> 3.x?
> The equivalent to
> new SPropertyValue(SCon.SEXTRA_TABLE_DDL,", UNIQUE(\"att1\", \"att2
> \")")
> in SimpleORM 2.x.
> 
> Thank you in advance.
> 
> Ciao, Guenter
> 
> 
> 
> 
> 

-- 
Franck Routier 
             Logo Axège
Axège
23,rue Saint-Simon
63000 Clermont-Ferrand
Tél: +33 (0)4 63 05 95 40
Fax: +33 (0)4 73 70 65 29
Email: [email protected]








------------------------------------

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:
    [email protected] 
    [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/