You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by James Wang <to...@yahoo.com> on 2002/04/24 08:06:56 UTC

why the database table must be mapped to java object with Torque in Jetspeed?

can i use entity bean instead of torque api?

__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: why the database table must be mapped to java object with Torque in Jetspeed?

Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,

--- James Wang <to...@yahoo.com> wrote:
> thank for you answer,but my question is:
> why must convert db to object,it takes a lot of work.
> what's the benifit?
> 

It depends what your requirements are - if your requirement is to
produce something quickly that does not have a high performance
requirement, then using tools that help you convert tables to objects
is definitely quicker to develop with (you don't write the code to
select/insert/update the table).  You just write code to deal with
your objects - for example stock, product lines etc.  Ideally you do
not want to spend time writing code to put the data into and out of
the db.  Its been done before a million times - eg Torque...

If you have requirements for a very high performance system - chances
are, that is not required for all of it, eg some data is static, for
example countries - so you can use the object tools for those.  Where
the data does have high performance requirements you can then do your
own thing for that data...  But you will almost certainly have to
spend a lot of time developing this.

HTH,
Chris

=====
------------------------------------------
http://www.soccer2002.org.uk

__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: why the database table must be mapped to java object with Torque in Jetspeed?

Posted by James Wang <to...@yahoo.com>.
thank for you answer,but my question is:
why must convert db to object,it takes a lot of work.
what's the benifit?

__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: why the database table must be mapped to java object with Torque in Jetspeed?

Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,

--- James Wang <to...@yahoo.com> wrote:
> can i use entity bean instead of torque api?
> 

For your own objects, you can use whatever you want, EJB, JDO, etc.

For turbine/jetspeed objects, like TURBINE_USER and
JETSPEED_ANON_PROFILE (if your using dbpsml), then you will have to
do some work in terms of implementing interfaces etc - but it should
be possible... although I have not done it personally.

HTH,
Chris

=====
------------------------------------------
http://www.soccer2002.org.uk

__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>