on 5/9/01 9:33 PM, "[EMAIL PROTECTED]" <[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.

So, then define the tables in your project-schema.xml file and generate the
Peer objects using Torque.

RTM:
<http://jakarta.apache.org/turbine/torque.html>

> 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?

RTM:
<http://jakarta.apache.org/turbine/torque.html>

> It seems that Peer and database table has 1:1 relation.
> and I wonder whether it can be 1:n relation.

Of course. RTM.

-jon

-- 
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>


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

Reply via email to