Re: Does the DataSet have a future?

From: David Browne (meat_at_hotmail.com)
Date: 03/03/05


Date: Thu, 3 Mar 2005 11:18:38 -0600


"Greg Gates" <ggates@capcollege.bc.ca> wrote in message
news:59830ce1.0503030850.7e531376@posting.google.com...
>I have recently finished reading 'Hibernate In Action' by Christian Bauer
> and Gavin King. I'm quite impressed with the functionality that is
> available in Hibernate. I am now questioning if the DataSet has a future.
>
> While the DataSet certainly contains a good deal of very useful
> functionality, it appear that a Hibernate solution offers more flexibility
> and, given good tools, a similar ease of use. In addition, the DataSet is
> a
> very "Microsoft-centric" approach. I wonder if a DataSet style approach is
> transferable to the Java world. I get the sense from following the Java
> and
> Object newsgroups that a table-oriented architecture is generally not
> considered to be the best approach as it is not as flexible and is more
> difficult to implement complex business rules.

Look at JDBC Rowsets. New and very similar toe DatSets. I think Java is
just trying to catch up with ADO.NET.

>
> So what to do? NHibernate is still in beta. There are no out-of-the-box
> tools for object relational mapping in .NET. There are a variety of third
> party ORM tools for .NET, but they have widely differing approaches and
> none appear to have the momemtum of Hibernate.
>
> Is a true ORM solution superior to the DataSet, and will this cause the
> DataSet to become legacy once ObjectSpaces is available?

And exactly when to you think that will be?

> It appears the Hibernate offers the functionality that ObjectSpaces will
> offer, but I can use Hibernate today!
>
> For these reasons,I am seriously considering using Eclipse,Hibernate and
> SWT/JFace for a windows client desktop application. What do you think? Is
> this going too far? Am I throwing the baby out with the bathwater?
>
>

Definitely a bad idea. DataSets are much better than ORM solutions for
windows client desktop apps. For that kind of app you don't want to hide
the tabular nature of the data. Fetch DataSets, bind them to UI widgits,
let the user fiddle with them, and flush them back to the database. You
will be able to this in a fraction of the code it would take with
Eclipse\SWT\Hibernate.

ORM tools aim to make relational data "look like" objects. Even if an ORM
tool is 100% sucessfull and introduces 0% overhead, you're still treating
living a lie. Tables are not objects, and vice versa, and pretending
otherwise will always cause problems.

Now depending on how data-intensive your application is, this may be a
trade-off you can live with.

David



Relevant Pages

  • Re: Does the DataSet have a future?
    ... I believe Java will not be able to catch .NET. ... >>I have recently finished reading 'Hibernate In Action' by Christian Bauer ... >> Is a true ORM solution superior to the DataSet, ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: mySQL
    ... An ORM is an Object Relational Mapping tool or framework. ... In Hibernate, for example you can create a class & provide a simple XML file ... objects for you & you do not need to write any sql. ... to have a reasonable understanding of how databases work though when using ...
    (comp.lang.java.help)
  • Does the DataSet have a future?
    ... I have recently finished reading 'Hibernate In Action' by Christian Bauer ... I'm quite impressed with the functionality that is ... transferable to the Java world. ... party ORM tools for .NET, but they have widely differing approaches and ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: PHP MySQL object question
    ... class SpecialCar extends Car ... But even here you don't need an ORM to do your work. ... I suspect it takes me less time to create the classes from my skeletons than it does you to implement the same code in Hibernate. ... Products like Hibernate are good for beginning programmers; they are OK for programmers with fair experience. ...
    (comp.lang.php)
  • Re: ObjektIds (PK, serialisierbar) nett als String darstellen
    ... ObjektIds als String merken (serialisierbare PK von Datenbanken, ... per ORM als java objekt gemappt - hier speziell Hibernate) ... * halbwegs lesbar (für den techniker) ...
    (de.comp.lang.java)