db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neil Sherman <Neil.Sher...@trapezegroup.co.uk>
Subject Define a Foreign Key with a One-to-One mapping
Date Tue, 31 May 2011 11:31:49 GMT

This may be a bit of a simple question but...

How do I define a foreign key in my Torque schema with a one-to-one 
mapping ?  No matter what I do I always seem to end up with a one-to-many 
relationship ?

I've tried adding in multiplicity option but it doesnt seem to have any 

                <foreign-key foreignTable="styledJourneys">
                        <option key="bidirectional" value="false"/>
                        <option key="multiplicity" value="one-to-one"/> 
                        <reference local="journeySetID" foreign=

I'm using mySQL 5.1 as my database backend

Thanks for your time


To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org

View raw message