Originally posted by Ulf Dittmer:
...
Modeling foreign key relationships on the basis of Java methods (i.e., calling "getParent" on an object, instead of having to call "getParentID" and then having to access the Parent table with that ID) also simplifies things.
...
Originally posted by Mark Spritzler:
...
FOr me it is one big thing, maintenance. In JDBC it is s nightmare to me, so much more code to maintain. ...
Mark
Originally posted by Elizabeth King:
One architect from a famous IT company said that they had over 500 hundred tables in their DB and an OR mapping framework would help them to maintain the
code better and make their life easier compared to use straight JDBC.
[ April 11, 2008: Message edited by: Elizabeth King ]
"I, a universe of atoms, an atom in the universe." - Richard Feynman
Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
Originally posted by Elizabeth King:
Is maintaining xml files a nightmare?
So iBATIS would not offer much advantages on maintenance because it uses JDBC queries in the xml files (ObjectSQL mapping files).
Originally posted by James Sutherland:
... TopLink is still a very popular product.
...
"I, a universe of atoms, an atom in the universe." - Richard Feynman
Originally posted by Mark Spritzler:
I use Annotations.
...
Originally posted by Elizabeth King:
Is maintaining Java annotation a nightmare?
Originally posted by Mark Spritzler:
Not at all.
Mark
Originally posted by Elizabeth King:
Are you running in a circle?
You do not like straight JDBC Java code because it is mess.
Originally posted by Paul Clapham:
...
And I found it was far, far easier to just set up a few configuration files. The code I had to write was shorter and simpler.
...
I don't need to know all the frameworks, I just need to know Hibernate.
...
In the configuration files and the Hibernate code, yes. I consider that a good thing, even if from time to time I find myself slightly irritated that I'm spending a considerable fraction of my time configuring things.Originally posted by Elizabeth King:
Your code is shorter because the logic is in the configuration xml files.
I sympathize with this viewpoint, I used to think of it that way too. But now I don't. When I write web applications I write some Java code which goes in one place, and some JSP code that goes next to it, and some Javascript code which goes in another place, and there's some CSS stylesheet code which goes in a different place. But it's all "my code". There's also some XML configuration files, and they go in yet another place. They are part of "my code" too, they are just in yet another language. So yeah, my code is decentralized, but it was already that way before. Nothing much has changed.Originally posted by Anirudh Vyas:
I don't agree with Configuration XML files used "extensively" by frameworks to do their stuff. It makes the code decentralized and to think that a change in somewhere else (other than my code) code make things work differently gives me shrugs
Originally posted by Anirudh Vyas:
Paul,
That being said, Hibernate provides me with MUCH MUCH elegant way of programming and interacting with databases rather than JDBC which cannot solve the problem of impedence mismatch between Databases and Java Object oriented world.
Originally posted by Paul Clapham:
...
As for your political remarks, I don't have the background to comment on them. But I've seen such remarks made repeatedly over the last 5 years or so and they have mostly come to nothing.
Originally posted by Elizabeth King:
What is Impedence? Can we use the common language?
Originally posted by Elizabeth King:
Which remarks are political? Can you elaborate?
Java is losing the war to the MS partly because of the various open source frameworks. Sun is falling and powerless to stop something similar to Visual J++ anymore.
Originally posted by Paul Sturrock:
Impedence itself means a kind of resistance and is borrowed from electronics.
Originally posted by Paul Clapham:
In the configuration files and the Hibernate code, yes.
The code I had to write was shorter and simpler.
Originally posted by Elizabeth King:
does not stand.
Originally posted by Mark Spritzler:
... I am talking about 1/5th to 1/10 of the JDBC code versus the xml/annotations/code of an ORM tool.
...
Originally posted by Elizabeth King:
Mark, Where is the statistics from?