Thomas;

I have used both TopLink and Cocobase. For C++
mapping, you may want to look at RogueWave's C++
libraries.

Both TopLink and Cocobase supply you with a toolset
and libraries that allow you to declaratively and
interactively establish relationships between Java
objects and relational objects in a database.

I have more in depth experience with TopLink but I
woulld make the following comparisons:

1. TopLink (so far) only has direct support for EJB in
it's WebLogic product. (WebSphere support is somewhere
along the line). The TopLink for Java product is a
less architecture specific product and can be
implemented in EJB environments, but there is not
specific support (CMP) for other EJB servers. I even
heard it was being used inside the Oracle8i JVM.


Cocobase on the other hand, supports a whole list of
servers, some that I have only ever heard of on this
forum.

2. Cocobase is both a code generator and a persistence
manager (CMP) for existng beans. This means you can
either import existing beans and map them, or start
with a relational table and generate an entity bean
from it. This feature is quite nice if you are in a
hurry to generate a handful of entity beans for an
existing database.

TopLink is *not* a code generator, although the IDE
does supply what you could call extensive class
wizards, but none of it is actual intelligent code
generation, rather just (somewhat uncomfortable) class
editors. With TopLink, you import a class and a table
and you map them. It's actually a little more
complicated than that for a number of reasons. There
are something like 10 different mapping relationships
you can have for a given field in an entity bean, such
as one-one, one-many, binary stream, object
translation  (that means "Y"=true, "N"=false) etc. The
result is that you get some very sophisticated
relationship management, particularly with respect to
managing child objects. I think this was one of the
product's greatest strengths.

3. TopLink seemed to be infinitely customizable in
terms of runtime settings. You can fine tune cacheing
parameters, use stored procuedres instead of the
default SQL and all sorts of options for tweaking.

I am not sure that Cocobase is this configurable, but
they have a neat idea for caching entity beans which
involves using anb object database which is
synchronized across instances of the app server. This
is particularly compelling since it is the only real
solution I have encountered for the challenge of
chaching entity beans in a clustered environment.

TopLink manages the isDirty() stuff for you. If you
make fine grained (or coarse) changes to an entity,
when you commit the transaction, it will issue an
update to the database updating *only* the fields that
have changed ( or none if that is the case ).

Make sure you read and understand the docs, because
there are several ways to skin this cat, and I
basically came to the realization that eventually,
there is one best way to do it. I am referring to
techniques for deployment where runtime configuration
parameters are drawn from a class rather than text
files. This method is a huge time saver.

Also, be sure to take advantage of Jakarta-Ant. This
is an awesome build-and-deploy tool from Apache.

//Nicholas



















--- Thomas B�kamp <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Parts of my current work is to evaluate O/R Mapping
> Tools products. Is there
> such a thing a report to study different O/R Mapping
> Tools . Currently we
> are looking at Cocobase and Toplink. Can somebody
> help with the following
> questions:
>
> - Anybody know about Cccobase or Toplink the quality
> and Performance?
> - Any other O/R Mappers worth evaluate? Especially
> we would like to know if
> there is a product that the C++-part of the project
> can use too.
>
> Thanks  in advance
>
> Thomas.
>
>
_________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com.
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff EJB-INTEREST".  For general
> help, send email to
> [EMAIL PROTECTED] and include in the body of the
> message "help".
>


=====
Nicholas Whitehead
Home: (973) 377 9335
Cell: (973) 615 9646
[EMAIL PROTECTED]

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to