Whole Network Most Recent TOP10 AJAX E-Commerce Programming Security

 

Hibernate Configuration with No XML

Filed in archive Programming by jason on November 27, 2005

BlogPicture


Click to enlarge
This is something I'm not sure everyone knows because I've searched a number of tutorials on the subject and not found anything. Additionally I'm not a big fan of XML configuration files unless they are absolutely required. Spring seems to be the exception to that rule for me since the drudgery involved in the XML configuration of it has such a large return on the time invested.

Anyway, Someone helped me with this the other day. I had been spending a lot of time getting my Hibernate configuration file working the way I wanted. After I finished an associate forwarded me a sample of some code they were working on and I thought it was pretty cool. I then rewrote my configuration file as properties in a Java class and like it with the hibernatelinks configuration in a Java class. With this configuration and XDoclet there is no need to write any XML when using Hibernate at all.

I'm sure there are developers out there that like using XML instead but this is one more option. Changes would require a recompile... obviously. However, a change to an XML file would require an application to be restarted, which is much less severe but would affect the user experience as well. I guess it all depends on individual developers preferences and their like or dislike of XML configuration files.


Advertisement




Permalink: Hibernate Configuration with No XML
Tags: Hibernate  XML 

Trackback: http://www.creative-weblogging.com/cgi-bin/mt-tb.pl/11523



Related Entries:

Thomas Fuchs of Script.aculo.us Interviewed - 13 January 2006

Wake on Use - 12 January 2007

entry_title - 00 December 0000

Wake on Use 2 - 17 February 2007

How to tweak your X11 configuration - 21 July 2007

How to enable Suspend-to-RAM and Hibernate on Linux - 28 July 2007

April Means Bears are Waking Up - 24 April 2008

Advertisement


Advertisement


RSSrss   | See all blog subscribe options
Googlegoogle   |   What is RSS?
Yahoo!yahoo
AddthisAddThis Feed Button
BloglinesBloglines
Newsletter

Use our search feature to look for other interesting posts

Just this blog Whole network


 
  • Advertise with us

  • Learn more about our advertising options or email advertising - at - creative-weblogging.com or give Luis a call at +1 (650) 331 8047.


  • Testimonials

  • 'Great looking blog. Good quality posts with useful information.'
  • Other blogs in the same channel in the Creative Weblogging Network







 
Tagcloud: AJAX Application Development Awards Basics Business conference E-Commerce Management Mobile Devices mobile phones Monthly Contest Personal Programming Security Service Oriented Architectures Sponsored Posts updates Web Services