This week's book giveaway is in the Testing forum.
We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line!
See this thread for details.
Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
    Bookmark Topic Watch Topic
  • New Topic

Struts, hibernate,..... opinion

Jack Daniel
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi e'body

Well, when i look at Hibernate, the API has packages like...

But I have somebody's code which has API like cirrus.hibernate.*.*.* Is this from the previous version of Hibernate, which is no more used..???

Also, I really do not figure out what is the Advantage of using Hibernate.. Don't you guys think it complicates the code.. which eventually makes maintainence difficult; (a new programmer would scratch his head, when he looks at the code for the first time)

I am presntly in that case; I have some previous code, which inter-Mixed Struts, Log4j, Hibernate and Castor(all together in one small project, STRUTS application has plugged in hibernate, Castor and Log4j) which has made the code look SO DAMN complicated; i do not understand what is the Big advantage of using all these open source stuff;

Please share your views, so that I can understand what the point is, in using these kindof new design patterns...

Also, when it comes to open source, it would be one of the things which would keep on updating the most; so this is another area, where maintainence becomes an issue??
Looks like the package names have changed, when it comes to hibernate..!!

In All, what are the merits of using either hibernate, castor,...

Maybe occassionally you can use , say castor when it comes to java-XML binding... but anyway please share your opinions; That would be great;

Struts inter-mingled with hibernate and castor made the code pretty complicated..!!


PS: Sorry for posting it here, after posting it on ORM thread, maybe some moderator can delete it there; I felt this is a better thread to discuss about my question, later
Mark Spritzler
Posts: 17278
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Like you said, you have already posted this in the ORM forum, which is a closer forum for your question than this forum.

On the other side, the reason why you want to use these frameworks is that it makes your development more focused on Business rules than framework stuff, like persistence(Hibernate), Form handling and actions(Struts). Once you learn those frameworks your code is much easier to maintain, as long as you follow the design principles that should be used.

If you did not use Hibernate, then you would either use some other persistence framework, or you would have lots of JDBC code on your own to maintain, which makes it tougher to maintain.

    Bookmark Topic Watch Topic
  • New Topic