<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: The Great Hibernate Tutorial &#8211; a great jump start for beginners</title>
	<atom:link href="http://techtracer.com/2008/12/30/the-great-hibernate-tutorial-a-great-jump-start-for-beginners/feed/" rel="self" type="application/rss+xml" />
	<link>http://techtracer.com/2008/12/30/the-great-hibernate-tutorial-a-great-jump-start-for-beginners/</link>
	<description>Tracing the course of Web Technology</description>
	<lastBuildDate>Sun, 13 May 2012 05:47:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: UGC NET Coaching</title>
		<link>http://techtracer.com/2008/12/30/the-great-hibernate-tutorial-a-great-jump-start-for-beginners/comment-page-1/#comment-41437</link>
		<dc:creator>UGC NET Coaching</dc:creator>
		<pubDate>Sun, 13 May 2012 05:47:02 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/?p=278#comment-41437</guid>
		<description>Informative article. Thanks for sharing it.</description>
		<content:encoded><![CDATA[<p>Informative article. Thanks for sharing it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lala</title>
		<link>http://techtracer.com/2008/12/30/the-great-hibernate-tutorial-a-great-jump-start-for-beginners/comment-page-1/#comment-41432</link>
		<dc:creator>Lala</dc:creator>
		<pubDate>Fri, 04 May 2012 14:46:49 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/?p=278#comment-41432</guid>
		<description>inspite of sanitary: this is showing this ASS error:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#039;DeptDAO&#039; defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:997)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:943)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
	at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
	at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)
	at com.abc.services.DeptTest.(DeptTest.java:32)
Caused by: java.lang.ExceptionInInitializerError
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:76)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:990)
	... 13 more
Caused by: org.hibernate.MappingException: invalid configuration
	at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2241)
	at org.hibernate.cfg.Configuration.configure(Configuration.java:2158)
	at org.hibernate.cfg.Configuration.configure(Configuration.java:2137)
	at com.abc.dao.DAO.(DAO.java:18)
	... 20 more
Caused by: org.xml.sax.SAXParseException: Document is invalid: no grammar found.
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at org.dom4j.io.SAXReader.read(SAXReader.java:465)
	at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2238)
	... 23 more
Exception in thread &quot;main&quot;</description>
		<content:encoded><![CDATA[<p>inspite of sanitary: this is showing this ASS error:<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#8216;DeptDAO&#8217; defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError<br />
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:997)<br />
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:943)<br />
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)<br />
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)<br />
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)<br />
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)<br />
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)<br />
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)<br />
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)<br />
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)<br />
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)<br />
	at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)<br />
	at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)<br />
	at com.abc.services.DeptTest.(DeptTest.java:32)<br />
Caused by: java.lang.ExceptionInInitializerError<br />
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br />
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)<br />
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)<br />
	at java.lang.reflect.Constructor.newInstance(Unknown Source)<br />
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)<br />
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:76)<br />
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:990)<br />
	&#8230; 13 more<br />
Caused by: org.hibernate.MappingException: invalid configuration<br />
	at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2241)<br />
	at org.hibernate.cfg.Configuration.configure(Configuration.java:2158)<br />
	at org.hibernate.cfg.Configuration.configure(Configuration.java:2137)<br />
	at com.abc.dao.DAO.(DAO.java:18)<br />
	&#8230; 20 more<br />
Caused by: org.xml.sax.SAXParseException: Document is invalid: no grammar found.<br />
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)<br />
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source)<br />
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)<br />
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)<br />
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)<br />
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(Unknown Source)<br />
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)<br />
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)<br />
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)<br />
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)<br />
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)<br />
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)<br />
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)<br />
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)<br />
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)<br />
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)<br />
	at org.dom4j.io.SAXReader.read(SAXReader.java:465)<br />
	at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2238)<br />
	&#8230; 23 more<br />
Exception in thread &#8220;main&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lala</title>
		<link>http://techtracer.com/2008/12/30/the-great-hibernate-tutorial-a-great-jump-start-for-beginners/comment-page-1/#comment-41431</link>
		<dc:creator>Lala</dc:creator>
		<pubDate>Fri, 04 May 2012 14:29:54 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/?p=278#comment-41431</guid>
		<description>What F**k ALL who are saying  fantastic; GREAT  and bla bla send me the running  code with all files then I will believe that you are really praising this fucking tutorial !</description>
		<content:encoded><![CDATA[<p>What F**k ALL who are saying  fantastic; GREAT  and bla bla send me the running  code with all files then I will believe that you are really praising this fucking tutorial !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raman Mahajan</title>
		<link>http://techtracer.com/2008/12/30/the-great-hibernate-tutorial-a-great-jump-start-for-beginners/comment-page-1/#comment-41384</link>
		<dc:creator>Raman Mahajan</dc:creator>
		<pubDate>Mon, 02 Apr 2012 15:17:12 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/?p=278#comment-41384</guid>
		<description>Absolutly fantastic tutorial on Great Hibernate. Thanks for sharing this informative article here.</description>
		<content:encoded><![CDATA[<p>Absolutly fantastic tutorial on Great Hibernate. Thanks for sharing this informative article here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sms interceptor</title>
		<link>http://techtracer.com/2008/12/30/the-great-hibernate-tutorial-a-great-jump-start-for-beginners/comment-page-1/#comment-41347</link>
		<dc:creator>sms interceptor</dc:creator>
		<pubDate>Thu, 15 Mar 2012 07:17:36 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/?p=278#comment-41347</guid>
		<description>Nice tutorial, It helped me with what I am looking at.</description>
		<content:encoded><![CDATA[<p>Nice tutorial, It helped me with what I am looking at.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://techtracer.com/2008/12/30/the-great-hibernate-tutorial-a-great-jump-start-for-beginners/comment-page-1/#comment-41267</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Tue, 10 Jan 2012 13:15:12 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/?p=278#comment-41267</guid>
		<description>Excellent Tutorial ! 

I am also new to Hibernate and this tutorial helped me.  I also agree with above comment(MetaZone) 

Can you please comment on this?</description>
		<content:encoded><![CDATA[<p>Excellent Tutorial ! </p>
<p>I am also new to Hibernate and this tutorial helped me.  I also agree with above comment(MetaZone) </p>
<p>Can you please comment on this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Metazone</title>
		<link>http://techtracer.com/2008/12/30/the-great-hibernate-tutorial-a-great-jump-start-for-beginners/comment-page-1/#comment-41260</link>
		<dc:creator>Metazone</dc:creator>
		<pubDate>Sat, 07 Jan 2012 02:13:28 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/?p=278#comment-41260</guid>
		<description>I always prefer going from domain object model to the database model, given that we&#039;re using object-oriented modeling.  I&#039;ve seen applications that use hibernate that don&#039;t think first in terms of objects and it seems to be less than optimal. The object model is the primary artifact and it drives the design of the database.

Here are my steps:
Define your object model and its relationships -- inheritance, associations and parent/child with their cardinality (1-M, 1-1, etc.) and their direction (bi, uni).  
Identify those domain model objects that need to be persisted in a database and implement the database tables using the standard ways objects and their different relationships are mapped to db tables
Define the hibernate mapping files for mapping the domain model to the database tables.
Define your DAO classes with methods for saving, deleting, getting. updating the domain model objects; the methods will use hibernate in their implementation.

The first 2 steps are independent of Hibernate (however, by reading hibernate documentation, it can greatly help with the understanding of defining your object model and then what the standard ways are to map an object model to  a database).  

An important part of this is to make sure that you understand what the domain model is and what the other objects in your application are.  The domain object model is the common &#039;vocabulary&#039; between the non-domain model objects that are used by other layers -- e.g. when the GUI calls a method on a business logic object, the parameters and return values of the business logic method are domain model objects; if that business logic class needs to call a DAO class, the parameters and return values of the DAO class are domain model objects.  Therefore, the main  dependency between layers is the domain model; each layer is responsible for any mapping from and to the domain model objects.  Implicit in this is that you&#039;re developing a layered architecture where your non-domain model objects are categorized into layers of abstraction that only provide the functionality that the layer specifies (e.g. the DAO layer classes only perform database access; they have no business logic, no logic to access external systems, etc.)</description>
		<content:encoded><![CDATA[<p>I always prefer going from domain object model to the database model, given that we&#8217;re using object-oriented modeling.  I&#8217;ve seen applications that use hibernate that don&#8217;t think first in terms of objects and it seems to be less than optimal. The object model is the primary artifact and it drives the design of the database.</p>
<p>Here are my steps:<br />
Define your object model and its relationships &#8212; inheritance, associations and parent/child with their cardinality (1-M, 1-1, etc.) and their direction (bi, uni).<br />
Identify those domain model objects that need to be persisted in a database and implement the database tables using the standard ways objects and their different relationships are mapped to db tables<br />
Define the hibernate mapping files for mapping the domain model to the database tables.<br />
Define your DAO classes with methods for saving, deleting, getting. updating the domain model objects; the methods will use hibernate in their implementation.</p>
<p>The first 2 steps are independent of Hibernate (however, by reading hibernate documentation, it can greatly help with the understanding of defining your object model and then what the standard ways are to map an object model to  a database).  </p>
<p>An important part of this is to make sure that you understand what the domain model is and what the other objects in your application are.  The domain object model is the common &#8216;vocabulary&#8217; between the non-domain model objects that are used by other layers &#8212; e.g. when the GUI calls a method on a business logic object, the parameters and return values of the business logic method are domain model objects; if that business logic class needs to call a DAO class, the parameters and return values of the DAO class are domain model objects.  Therefore, the main  dependency between layers is the domain model; each layer is responsible for any mapping from and to the domain model objects.  Implicit in this is that you&#8217;re developing a layered architecture where your non-domain model objects are categorized into layers of abstraction that only provide the functionality that the layer specifies (e.g. the DAO layer classes only perform database access; they have no business logic, no logic to access external systems, etc.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Latest PC Tricks And Tips</title>
		<link>http://techtracer.com/2008/12/30/the-great-hibernate-tutorial-a-great-jump-start-for-beginners/comment-page-1/#comment-41162</link>
		<dc:creator>Latest PC Tricks And Tips</dc:creator>
		<pubDate>Sun, 20 Nov 2011 16:57:15 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/?p=278#comment-41162</guid>
		<description>Love this tutorial. Nice way to present the information regarding the Grate hibernate.</description>
		<content:encoded><![CDATA[<p>Love this tutorial. Nice way to present the information regarding the Grate hibernate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yjuhwy5u</title>
		<link>http://techtracer.com/2008/12/30/the-great-hibernate-tutorial-a-great-jump-start-for-beginners/comment-page-1/#comment-41070</link>
		<dc:creator>yjuhwy5u</dc:creator>
		<pubDate>Wed, 05 Oct 2011 06:08:16 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/?p=278#comment-41070</guid>
		<description>:) :-)</description>
		<content:encoded><![CDATA[<p> <img src='http://techtracer.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <img src='http://techtracer.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Syed Saulat</title>
		<link>http://techtracer.com/2008/12/30/the-great-hibernate-tutorial-a-great-jump-start-for-beginners/comment-page-1/#comment-41020</link>
		<dc:creator>Syed Saulat</dc:creator>
		<pubDate>Fri, 16 Sep 2011 18:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/?p=278#comment-41020</guid>
		<description>good tutorial</description>
		<content:encoded><![CDATA[<p>good tutorial</p>
]]></content:encoded>
	</item>
</channel>
</rss>

