Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Struts, hibernate,..... opinion

 
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi e'body

Well, when i look at Hibernate, the API has packages like...
net.sf.hibernate.*.*.*

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..!!

Thanks

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
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

Mark
 
    Bookmark Topic Watch Topic
  • New Topic