it is a 1:1 relation.  why do you want to map an object to two different
tables?  it will require you to make some modifications to the Peer
system.

john mcnally

[EMAIL PROTECTED] wrote:
> 
> On Wed, May 09, 2001 at 07:57:09PM -0700, Jon Stevens wrote:
> > on 5/9/01 7:44 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> >
> > > In example, I generated newapp and "FOO" table using Torque.
> > > But, I'd like to create table "BAR" manually and use it.
> >
> > Manually? What does manually mean? Ie: not through the Peer system? If that
> > is the case, then just make your JDBC calls directly to it. You can use the
> > turbine connection pool to pass in a connection.
> 
> It means I created database tables with my own hands.
> I want access this tables through Peer system, not JDBC API.
> 
> >
> > > In other words, I want to set table name to access dynamically
> > > in servlet code.
> >
> > I still don't get it. You need to realize that I'm not in your head. You
> > have to be overly descriptive of what you want to do so that I don't have to
> > try to guess what you mean.
> 
> I can access other table by modifying return value of XXXMapBuilder.getTable().
> But it never be a good way and it even can't change table name dynamically.
> is it a good way to do it?
> 
> It seems that Peer and database table has 1:1 relation.
> and I wonder whether it can be 1:n relation.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to