Re: Does the DataSet have a future?
From: David Browne (meat_at_hotmail.com)
Date: 03/03/05
- Next message: VJ: "Re: Data Table to Enum convert..."
- Previous message: Cor Ligthert: "Re: Problem with writexml and typed dataset"
- In reply to: Greg Gates: "Does the DataSet have a future?"
- Next in thread: Val Mazur \(MVP\): "Re: Does the DataSet have a future?"
- Reply: Val Mazur \(MVP\): "Re: Does the DataSet have a future?"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: VJ: "Re: Data Table to Enum convert..."
- Previous message: Cor Ligthert: "Re: Problem with writexml and typed dataset"
- In reply to: Greg Gates: "Does the DataSet have a future?"
- Next in thread: Val Mazur \(MVP\): "Re: Does the DataSet have a future?"
- Reply: Val Mazur \(MVP\): "Re: Does the DataSet have a future?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|