You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Matthew Inger <ma...@sedonacorp.com> on 2001/09/24 16:13:18 UTC

integrity constraints from user schema to turbine schema

Has anyone tried to use torque to generate an om that
has references to the main turbine schema?

I have a table which has contact information for the
user.  This information is in addition to the basic
stuff stored in the turbine_user table.  The problem
I run into is that if i try to use a field as a foreign
key into turbine_user, torque complains that the turbine_user
table does not exist.  I see why this happens (those tables
are not defined in the user schema file), but is there
a way around it?  I'd really like to enforce the integrity
of that table.


On Mon, 2001-09-24 at 09:59, J Kary wrote:
> Macro,
> 
> I've used Torque to do this kind of thing, however if you DB schems is
> really large then you will run into memory issues.  
> 
> Take Care
> Jason Kary
> 
> --- Marco Pas <ma...@cmg.nl> wrote:
> > Can Torque be used to reproduce a db schema and generating the
> > classes, this
> > from an already excisting DB
> > from which i do not have the .xml schema descriptor ?
> >  
> > Tools like DBGen can do this, but i want to test Torque!
> > 
> > 
> >                     groeten / regards, 
> > 
> >                     Marco Pas 
> >                     CMG Trade, Transport & Industry B.V.
> > 
> >
> ----------------------------------------------------------------------
> > Marco Pas
> > CMG Java Competence Center
> > Internet Software Engineering - RTSE2
> > P.O. Box 8566, 3009 AN Rotterdam, 
> > Kralingseweg 241 - 249, 3062 CE Rotterdam 
> > The Netherlands
> > * 010-2537000 / 7338 (CMG)
> > * 06-18808521 (Mobile)
> > * javasuppor <ma...@cmg.nl> t@cmg.nl (JCC)
> > *  <ma...@cmg.nl> marco.pas@cmg.nl (CMG)
> > 
> > Disclaimer
> > The Information contained in this email and its attachments is
> > confidential
> > and may be legally privileged. It is intended solely for the use of
> > the
> > individual or entity to whom it is addressed and others authorised to
> > receive it. If you are not the intended recipient you are hereby
> > notified
> > that any disclosure, copying, distribution or taking any actions in
> > reliance
> > of the contents of this email and any attachments is strictly
> > prohibited and
> > may be unlawful. CMG is neither liable for the proper and complete
> > transmission of the information contained in this email and any
> > attachments
> > nor for any delay in its receipt. If received in error, please
> > contact CMG
> > on +31 (0)020 50 33 000 quoting the name of the sender and the
> > addressee and
> > then delete it from your system. Please note that CMG does not accept
> > any
> > responsibility for viruses and it is your responsibility to scan the
> > email
> > and attachments (if any). No contracts may be concluded on behalf of
> > CMG by
> > means of email communications.
> > 
> >  
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
> 
-- 
Matt Inger (matt.inger@sedonacorp.com)
Sedona Corporation
455 S. Gulph Road, Suite 300
King of Prussia, PA 19406
(484) 679-2213
"Self-respect - the secure feeling that no one,
 as yet, is suspicious." -H.L. Mencken 


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


Re: integrity constraints from user schema to turbine schema

Posted by Scott Eade <se...@backstagetech.com.au>.
From: "Matthew Inger" <ma...@sedonacorp.com>
> Has anyone tried to use torque to generate an om that
> has references to the main turbine schema?
> 
> I have a table which has contact information for the
> user.  This information is in addition to the basic
> stuff stored in the turbine_user table.  The problem
> I run into is that if i try to use a field as a foreign
> key into turbine_user, torque complains that the turbine_user
> table does not exist.  I see why this happens (those tables
> are not defined in the user schema file), but is there
> a way around it?  I'd really like to enforce the integrity
> of that table.

Look at extend-user-howto.xml in CVS (this is a newer version
than you will find on the turbine site).

A note of warning however: 
http://www.mail-archive.com/turbine-user%40jakarta.apache.org/msg03447.html

HTH

Scott


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