<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" gd:etag="W/&quot;DU8ARH46fSp7ImA9WhFSEkw.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232</id><updated>2013-06-14T19:20:45.015+05:30</updated><category term="xml" /><category term="JPA" /><category term="JBoss" /><category term="IGNOU" /><category term="jdbc" /><category term="JSP" /><category term="java" /><category term="EJB3" /><category term="Spring Framework" /><category term="Hibernate" /><category term="Proprties" /><category term="HSQLDB" /><category term="Logging" /><category term="Java Networking" /><category term="FreeMarker" /><category term="Programs" /><category term="RMI" /><category term="Ajax" /><category term="misc" /><category term="Swing" /><category term="Data Structure" /><category term="Spring MVC" /><category term="Java Collections" /><category term="Logics" /><category term="Enum" /><category term="JEE" /><category term="Servlet" /><category term="database" /><category term="Struts 2" /><title>Programming For Future</title><subtitle type="html">Future driven solutions.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>205</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/ProgrammingForFuture" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="programmingforfuture" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by-nc-sa/2.0/" /><logo>http://creativecommons.org/images/public/somerights20.gif</logo><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">ProgrammingForFuture</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><entry gd:etag="W/&quot;CUMNRXw-cCp7ImA9WhBaFU4.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-7085996193383801404</id><published>2013-05-25T19:55:00.000+05:30</published><updated>2013-05-26T07:28:14.258+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-26T07:28:14.258+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Spring MVC" /><title>Spring MVC - Ajax based form processing using JQuery and JSON with server side validation</title><summary type="html">Spring MVC provides support for processing the form as well as server side validation. It maps request parameters to form backing bean and validate the bean object if we have used @Valid annotation. When we submit the form, form get displayed with the error messages if validation is failed. Error messages are managed by Spring MVC and spring MVC binds them to the input fields.

But, If we want to&lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/sFjoFiUT028" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/7085996193383801404/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=7085996193383801404&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/7085996193383801404?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/7085996193383801404?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2013/05/spring-mvc-ajax-based-form-process.html" title="Spring MVC - Ajax based form processing using JQuery and JSON with server side validation" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CkAHSHk5eyp7ImA9WhBbFU4.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-4905555236996689193</id><published>2013-05-14T16:51:00.002+05:30</published><updated>2013-05-14T16:55:39.723+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-14T16:55:39.723+05:30</app:edited><title>WARNING: SQL Error: 1062, SQLState: 23000 SEVERE: Duplicate entry '*' for key '************'</title><summary type="html">May 14, 2013 4:35:23 PM org.hibernate.util.JDBCExceptionReporter logExceptionsWARNING: SQL Error: 1062, SQLState: 23000May 14, 2013 4:35:23 PM org.hibernate.util.JDBCExceptionReporter logExceptionsSEVERE: Duplicate entry '2' for key 'navigation_id'May 14, 2013 4:35:23 PM org.hibernate.event.def.AbstractFlushingEventListener performExecutionsSEVERE: Could not synchronize database state with &lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/97ThBWNnGdk" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/4905555236996689193/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=4905555236996689193&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/4905555236996689193?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/4905555236996689193?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2013/05/warning-sql-error-1062-sqlstate-23000.html" title="WARNING: SQL Error: 1062, SQLState: 23000 SEVERE: Duplicate entry '*' for key '************'" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total></entry><entry gd:etag="W/&quot;CUUGRH84eip7ImA9WhBWE0w.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-578444868020599214</id><published>2013-04-07T11:10:00.001+05:30</published><updated>2013-04-07T11:10:25.132+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-07T11:10:25.132+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Servlet" /><category scheme="http://www.blogger.com/atom/ns#" term="JSP" /><title>Uploading file using Servlet/JSP with the help of apache commons-fileupload library</title><summary type="html">
Here is the example to upload the file using commons fileupload library.

package imagesvideos.webcontroller;

import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import &lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/WQxrsMN2WDA" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/578444868020599214/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=578444868020599214&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/578444868020599214?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/578444868020599214?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2013/04/uploading-file-using-servletjsp-with.html" title="Uploading file using Servlet/JSP with the help of apache commons-fileupload library" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CEMHQXsyfSp7ImA9WhBXE0U.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-8320454525413733535</id><published>2013-03-27T16:15:00.000+05:30</published><updated>2013-03-27T16:37:10.595+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-27T16:37:10.595+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Spring Framework" /><category scheme="http://www.blogger.com/atom/ns#" term="Spring MVC" /><title>Spring MVC - Populating domain object (Form backing Object) in view and updating some properties</title><summary type="html">
Sometimes we need to update the domain object partially. We get complete object from database but we have to update some fields of it using html form. In this situation, original Data Object is kept on the server and some fields are asked to be filled by user.

In Sprint MVC, we have implemented feature that helps us to get it done. There is @ModelAttribute annotation that captures Bean object &lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/gSKrhoZTqFs" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/8320454525413733535/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=8320454525413733535&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/8320454525413733535?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/8320454525413733535?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2013/03/spring-mvc-populating-domain-object.html" title="Spring MVC - Populating domain object (Form backing Object) in view and updating some properties" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CEEGQXsyfyp7ImA9WhBXEU8.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-4233721727233742811</id><published>2013-03-24T16:27:00.000+05:30</published><updated>2013-03-24T16:27:00.597+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-24T16:27:00.597+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="java" /><title>Understanding run time polymorphism of an object</title><summary type="html">Run-time polymorphism is the ability of an object to play multiple roles at run-time. See the following program where the object of Cal class will have different behaviors according the reference variable through which it is pointed. If we access Cal object using c, it has add() and sub() methods. If we access it using a reference variable then only add() method is accessible and same is for b &lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/b8Xs45bFRY4" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/4233721727233742811/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=4233721727233742811&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/4233721727233742811?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/4233721727233742811?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2013/03/understanding-run-time-polymorphism-of.html" title="Understanding run time polymorphism of an object" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CkQMQX08fip7ImA9WhBSE0U.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-3872849561391655457</id><published>2013-02-20T22:43:00.000+05:30</published><updated>2013-02-20T22:43:00.376+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-02-20T22:43:00.376+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JEE" /><category scheme="http://www.blogger.com/atom/ns#" term="JSP" /><title>JEE : Java Server Page (JSP)  life cycle</title><summary type="html">All the JSP run under supervising of web server. They do not receive 
requests from client and they do not send the response to client. All 
the JSP pages pass through the Server side processing. And result of 
sever side processing is sent to client. That is why they called dynamic
 pages. In the case of static page there is no server processing, web 
server returns them as they are.

Dotted
 &lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/mfilVlq8cMo" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/3872849561391655457/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=3872849561391655457&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/3872849561391655457?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/3872849561391655457?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2013/02/jee-java-server-page-jsp-life-cycle.html" title="JEE : Java Server Page (JSP)  life cycle" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CU8EQXg-cCp7ImA9WhBSEkQ.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-8302571718990657135</id><published>2013-02-19T22:40:00.000+05:30</published><updated>2013-02-19T22:40:00.658+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-02-19T22:40:00.658+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Data Structure" /><title>Popular Logics for implementation to check basic skills of fresher</title><summary type="html">Factorial
long Factorial( int n ) {
if ( n&amp;gt;0 )
return( n * Factorial(n-1) );
else
return( 1 );
}
Fibonacci
int Fibonacci( int n ) {
if ( n==1 || n==2 )
return( 1 );
else
return( Fibonacci(n-1) + Fibonacci(n-2) );
}
GCD
int GCD( int a, int b )
{
if ( a&amp;gt;=b &amp;amp;&amp;amp; a%b==0 )
return( b );
else if ( a&amp;lt;b )
return( GCD( b, a ) );
else
return( GCD( b, a%b ) );
}
Power
double Power( double x, int n ) {
if ( n==&lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/kxBqRbSCxBo" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/8302571718990657135/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=8302571718990657135&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/8302571718990657135?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/8302571718990657135?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2013/02/popular-logics-for-implementation-to.html" title="Popular Logics for implementation to check basic skills of fresher" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CkcER3Y_fCp7ImA9WhBSEUs.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-4269850257322304065</id><published>2013-02-18T09:30:00.000+05:30</published><updated>2013-02-18T09:30:06.844+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-02-18T09:30:06.844+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JEE" /><category scheme="http://www.blogger.com/atom/ns#" term="JSP" /><title>JSP SCRIPTING ELEMENTS</title><summary type="html">
 Expression tag ( &amp;lt;%=   %&amp;gt;)

This      tag is used to sent the output of the expression to the output stream like      method println().
This      tag allows the developer to embed any Java expression and is short for      out.println().
This      tag starts with &amp;lt;%= and ends with %&amp;gt;.
A      semicolon ( ; ) does not appear at the end of the code inside the tag.

For example,to show the current &lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/UijqSAvK8CY" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/4269850257322304065/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=4269850257322304065&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/4269850257322304065?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/4269850257322304065?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2013/02/jsp-scripting-elements.html" title="JSP SCRIPTING ELEMENTS" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;D0cAQn8zfSp7ImA9WhBSEUg.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-6786418167907388587</id><published>2013-02-17T04:30:00.000+05:30</published><updated>2013-02-18T08:07:23.185+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-02-18T08:07:23.185+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JEE" /><category scheme="http://www.blogger.com/atom/ns#" term="JSP" /><title>JSP : Predifined variables | implicit objects</title><summary type="html">There are following implicit objects those become available to programmer to use in JSP page.


 

out
The out implicit object is an instance of a javax.servlet.jsp.JspWriter object and is used to send content in a response. The JspWriter object emulates some of the functionality found in the java.io.PrintWriter and java.io.BufferedWriter objects to provide a convenient method of writing text in &lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/diZ6t6UfSyA" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/6786418167907388587/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=6786418167907388587&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/6786418167907388587?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/6786418167907388587?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2013/02/jsp-predifined-variables-impleciate.html" title="JSP : Predifined variables | implicit objects" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CU8CRHs9cCp7ImA9WhBSEE4.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-6061724697880957892</id><published>2013-02-16T22:27:00.001+05:30</published><updated>2013-02-16T22:27:45.568+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-02-16T22:27:45.568+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Hibernate" /><category scheme="http://www.blogger.com/atom/ns#" term="JPA" /><title>@AttributeOverrides annotation in hibernate/JPA</title><summary type="html">@AttributeOverrides annotation is used in hibernate/JPA to rename the column(s) name of the embadable class while it is being embedded in other class.
Suppose A class is embedded in class B, then if A entity contains the column name of any property "phone", then B entity can override the column name to "mobileNumber". So, in the table, column name will be "mobileNumber".

package entity;

import &lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/1Kr9qw76mSk" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/6061724697880957892/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=6061724697880957892&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/6061724697880957892?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/6061724697880957892?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2013/02/attributeoverrides-annotation-in.html" title="@AttributeOverrides annotation in hibernate/JPA" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DUcBRX8-fyp7ImA9WhBTGUk.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-6699178015204191792</id><published>2013-02-15T21:32:00.001+05:30</published><updated>2013-02-15T22:20:54.157+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-02-15T22:20:54.157+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Hibernate" /><category scheme="http://www.blogger.com/atom/ns#" term="JPA" /><title>Hibernate (or JPA) - Using "mappedBy" attribute of mapping annotations(like @OneToOne, @OneToMany, @ManyToMany)</title><summary type="html">Using "mappedBy" attribute of mapping annotations(like @OneToOne, @OneToMany, @ManyToMany) for bi-directional relationship. This attribute allows you to refer the associated entities from both sides. If "X" has association with "Y" then you can get X from Y and Y from X.

For example, If you have "Book" entity and "Author" entity those are associated to each other in the way that Book has a &lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/a_4Ydm9j4Go" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/6699178015204191792/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=6699178015204191792&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/6699178015204191792?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/6699178015204191792?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2013/02/hibernate-or-jpa-using-mappedby.html" title="Hibernate (or JPA) - Using &quot;mappedBy&quot; attribute of mapping annotations(like @OneToOne, @OneToMany, @ManyToMany)" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total></entry><entry gd:etag="W/&quot;CU8BR3czeyp7ImA9WhNbFUs.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-3770439491538608630</id><published>2013-01-19T08:20:00.004+05:30</published><updated>2013-01-19T08:20:56.983+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-01-19T08:20:56.983+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Hibernate" /><title>Hibernate SchemaExport tool for Automatic schema generation</title><summary type="html">

Hibernate provides various utilities for developer in which SchemaExport is the one of those utilities that generates SQL queries representing the schema including referential integrity, keys, relationship for the entities and collations. you can use these generated schema to populate the tables structure in database.

Dialect must be specified there before creating schema so that this tool can&lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/uN5S9ogzIx4" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/3770439491538608630/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=3770439491538608630&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/3770439491538608630?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/3770439491538608630?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2013/01/hibernate-schemaexport-tool-for.html" title="Hibernate SchemaExport tool for Automatic schema generation" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;A08FSX87eyp7ImA9WhNTE0k.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-115872614088538344</id><published>2012-10-06T21:44:00.002+05:30</published><updated>2012-10-16T06:40:18.103+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-10-16T06:40:18.103+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Struts 2" /><title>Struts2 Resource Handling - Using Hindi language in internationalization (i18n)</title><summary type="html">
Struts2 provides us different ways for handling message resources. Struts2 supports internationalization for different locales and we can provide message resources for different locales. Struts2 will use resource file naming convention through which it identifies that which message resource file to be used within the particular session.

See the following configuration.
&amp;lt;?xml version="1.0" &lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/DMPI4IIZLvA" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/115872614088538344/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=115872614088538344&amp;isPopup=true" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/115872614088538344?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/115872614088538344?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2012/10/struts2-resource-handling-using-hindi.html" title="Struts2 Resource Handling - Using Hindi language in internationalization (i18n)" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-38OQ9Y5Kj28/UHBQl5FFLYI/AAAAAAAAANg/pOCLxNENUY8/s72-c/CWindowssystem32cmd.exe_2012-10-06_18-01-25.png" height="72" width="72" /><thr:total>2</thr:total></entry><entry gd:etag="W/&quot;CkEGSHk7cCp7ImA9WhJUGUs.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-6511604162927491443</id><published>2012-09-18T15:00:00.001+05:30</published><updated>2012-09-18T15:00:29.708+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-09-18T15:00:29.708+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="FreeMarker" /><title>FreeMarker : Example</title><summary type="html">


Freemarker is a simple templating engine that can generate text contents from any type of template. It is so simple that you can learn it in a single day and can use it in any project.

It helps you when you need to produce bulk text contents of the common format like newsletters, green mail, notifications etc.



package fm;
import java.io.File;
import java.io.IOException;
import &lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/hWsLnGztchg" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/6511604162927491443/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=6511604162927491443&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/6511604162927491443?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/6511604162927491443?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2012/09/freemarker-example.html" title="FreeMarker : Example" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DUcEQHg4cCp7ImA9WhJUGEs.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-6832748713267114729</id><published>2012-09-17T13:00:00.000+05:30</published><updated>2012-09-17T13:00:01.638+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-09-17T13:00:01.638+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Struts 2" /><title>Struts2 - Enabling Client Side validation</title><summary type="html">





Struts2 provides the declarative option to define the validation rules for the data fields in form. You can use the default implementation of validation framework of the struts2 to validate various kind of data. When you use the validation feature of the struts2, it is done server side by default. But setting 
a single attribute of the form tag, it can be applied at client side. 

Struts2 &lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/CrvzoXaM33g" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/6832748713267114729/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=6832748713267114729&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/6832748713267114729?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/6832748713267114729?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2012/09/struts2-enabling-client-side-validation.html" title="Struts2 - Enabling Client Side validation" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-qOTLmVd1rzI/UFbGb1EWurI/AAAAAAAAANQ/jopmQ1kaA80/s72-c/Insert+title+here+-+Mozilla+Firefox_2012-09-17_12-12-09.jpg" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUEFQng-eSp7ImA9WhJUGEk.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-5504102456871381963</id><published>2012-09-16T08:48:00.002+05:30</published><updated>2012-09-17T06:30:13.651+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-09-17T06:30:13.651+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Struts 2" /><title>Struts2 - Writing custom validator</title><summary type="html">


Sometimes it is needed that the existing validation rules those are implemented by struts framework do not satisfy project validation criteria. That you have to write your logic according to your requirements. Struts2 provides the facility to write your own validation class in which you can implement your own validation logic.

Step-1: 
Write down a class that extends inbuilt validator support&lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/LT2KtdSbdSM" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/5504102456871381963/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=5504102456871381963&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/5504102456871381963?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/5504102456871381963?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2012/09/struts2-writing-custom-validator.html" title="Struts2 - Writing custom validator" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DUQBSH45cSp7ImA9WhVVE00.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-1068233115067268676</id><published>2012-05-06T17:50:00.001+05:30</published><updated>2012-05-06T17:59:19.029+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-05-06T17:59:19.029+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Spring Framework" /><category scheme="http://www.blogger.com/atom/ns#" term="Spring MVC" /><title>Spring MVC - Avoid "nested exception is java.lang.IllegalArgumentException" while mapping blank text field to int type using Spring MVC. Using custom editor to process numeric fields values.</title><summary type="html">
In Spring MVC, while I was capturing numeric value in int type property from the form, I was getting exception if the field is left blank instead of 
putting 0. If the numeric field is optional in form, I have to put 
default zero value for the numeric field (like phone number field) to 
pass the validation of that form. To avoid this situation, we can 
register our Custom editor for particular &lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/-2iJqiEeoBI" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/1068233115067268676/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=1068233115067268676&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/1068233115067268676?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/1068233115067268676?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2012/05/spring-mvc-using-custom-editor-to.html" title="Spring MVC - Avoid &quot;nested exception is java.lang.IllegalArgumentException&quot; while mapping blank text field to int type using Spring MVC. Using custom editor to process numeric fields values." /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CU4HQ3c-fyp7ImA9WhVREE4.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-2419951021475709915</id><published>2012-03-13T07:17:00.000+05:30</published><updated>2012-03-18T06:55:32.957+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-18T06:55:32.957+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Struts 2" /><title>Struts 2 | ModelDriven to handle Form Data</title><summary type="html">

In struts2, values of request parameters(HTML form's fields) are 
mapped to matching properties of the action class . Struts populates the 
values come in Http Request to the variables having same name of input 
fields of the HTML form. When we want to persist the data received form 
request, it needs to be in model object that can be persisted by ORM 
framework like JPA or Hibernate. So if we &lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/FNPFSExwyO0" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/2419951021475709915/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=2419951021475709915&amp;isPopup=true" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/2419951021475709915?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/2419951021475709915?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2012/03/struts-2-modeldriven-to-handle-form.html" title="Struts 2 | ModelDriven to handle Form Data" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total></entry><entry gd:etag="W/&quot;DkMBQ3o8eip7ImA9WhVSFk0.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-7926452270610183022</id><published>2012-01-20T07:12:00.001+05:30</published><updated>2012-03-13T07:37:32.472+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-13T07:37:32.472+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Spring Framework" /><title>Spring Framework : ApplicationContext instantiation for web applications in Spring Framework</title><summary type="html">
In web application ApplicationContext is created using Context Loaders. there are two implementations of context loader.

ContextLoaderListener : It is listener implementation that is added to web.xml file.
ContextLoaderServlet : It is servlet implementation that is configured with load-on-startup tag in web.xml.



 ContextLoaderListener is simple way to use the spring in web application. this &lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/RNF99Ao7sPc" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/7926452270610183022/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=7926452270610183022&amp;isPopup=true" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/7926452270610183022?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/7926452270610183022?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2012/01/applicationcontext-instantiation-for.html" title="Spring Framework : ApplicationContext instantiation for web applications in Spring Framework" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total></entry><entry gd:etag="W/&quot;Ak8MSXg7eSp7ImA9WhZaEEg.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-9091521220877489818</id><published>2011-06-26T08:57:00.001+05:30</published><updated>2011-06-26T08:58:08.601+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-26T08:58:08.601+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Hibernate" /><title>org.hibernate.HibernateException: Javassist Enhancement failed</title><summary type="html"> [main] INFO org.hibernate.event.def.DefaultLoadEventListener - Error performing load command
org.hibernate.HibernateException: Javassist Enhancement failed: entities.Employee
    at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxy(JavassistLazyInitializer.java:143)
    at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.getProxy(JavassistProxyFactory.java:72)
    at &lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/H69GhyzMVvw" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/9091521220877489818/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=9091521220877489818&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/9091521220877489818?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/9091521220877489818?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2011/06/orghibernatehibernateexception.html" title="org.hibernate.HibernateException: Javassist Enhancement failed" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;AkcHRn4zeSp7ImA9WhZbEk0.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-3190641379790852524</id><published>2011-06-16T12:35:00.002+05:30</published><updated>2011-06-16T12:37:17.081+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-16T12:37:17.081+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Hibernate" /><title>Using HQL in Hibernate</title><summary type="html">HQL stands for Hibernate Query Language that works on persistent objects and their properties. It is similar to SQL but we use the class and Properties in syntax of query instead of table and columns names. It is case sensitive while we write the name of java classes and  properties. You have to user Class name to be mapped to table instead of  database table name.
SQL Table

package domain;
&lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/DlhL_HMGdJc" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/3190641379790852524/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=3190641379790852524&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/3190641379790852524?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/3190641379790852524?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2011/06/using-hql-in-hibernate.html" title="Using HQL in Hibernate" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-dfBICJB6QBQ/TfmrZXNJHgI/AAAAAAAAALc/_syVMRGzZ1k/s72-c/000023.jpg" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;A0MMSHYzfip7ImA9WhZbEEQ.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-990836143769452336</id><published>2011-06-15T06:28:00.000+05:30</published><updated>2011-06-15T06:28:09.886+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-15T06:28:09.886+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Hibernate" /><title>Inheritance mapping in hibernate :Table per class</title><summary type="html">This mapping is not known as good mapping for projects.    In this approach all of the fields of each type in the inheritance hierarchy are stored in distinct tables. 
It has many drawbacks while dealing with polymorphic and association.   This strategy supports bidirectional one-to-many association. 

package domain;
import javax.persistence.*;
@Entity
@Inheritance(strategy=&lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/3CGCIFCaAGw" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/990836143769452336/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=990836143769452336&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/990836143769452336?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/990836143769452336?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2011/06/inheritance-mapping-in-hibernate-table_15.html" title="Inheritance mapping in hibernate :Table per class" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-9BaMefJDbSU/Tfc9bVpbiKI/AAAAAAAAALQ/JaT_KkzlrOU/s72-c/000020.jpg" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;A0QCQHw4fyp7ImA9WhZbEEQ.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-8197697215814891804</id><published>2011-06-14T06:37:00.002+05:30</published><updated>2011-06-15T06:26:01.237+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-15T06:26:01.237+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Hibernate" /><title>Inheritance mapping in hibernate :JOINED strategy</title><summary type="html">We can map each class in individual table in database using JOINED strategy. 
   using @Inheritance(strategy=InheritanceType.JOINED) annotation, we can  define this strategy. In this approach, primary key of the super class  works as foreign key in sub class.So at the time of dealing with data,  Hibernate Joins the tables for getting consolidated values for Subclass  Object.
   you can use  @&lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/xbT4L9N-ybw" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/8197697215814891804/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=8197697215814891804&amp;isPopup=true" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/8197697215814891804?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/8197697215814891804?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2011/06/inheritance-mapping-in-hibernate-table.html" title="Inheritance mapping in hibernate :JOINED strategy" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-oYZqvIWXTEs/TfWy-RC5yrI/AAAAAAAAALE/l0F6lp6RTug/s72-c/000017.jpg" height="72" width="72" /><thr:total>3</thr:total></entry><entry gd:etag="W/&quot;DkMDSH8-fCp7ImA9WhZUGEU.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-4391401257195891681</id><published>2011-06-12T18:34:00.001+05:30</published><updated>2011-06-12T18:44:39.154+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-12T18:44:39.154+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Hibernate" /><title>Inheritance mapping in hibernate : Single Table strategy</title><summary type="html">Hibernate provides the following approaches to mapping inheritance hierarchies into the database. 
One table for each class hierarchy
One table for each subclass 
One table for each concrete class implementation 
Implicit polymorphism         

Single Table :

In this approach all attributes of all the classes are available in a single table as its columns. A discriminator field is used to &lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/yOHR6lWasP8" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/4391401257195891681/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=4391401257195891681&amp;isPopup=true" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/4391401257195891681?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/4391401257195891681?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2011/06/inheritance-mapping-in-hibernate-single.html" title="Inheritance mapping in hibernate : Single Table strategy" /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-KlcORNIZs1A/TfS4zXnr47I/AAAAAAAAALA/UVMtTp7y-vo/s72-c/000015.jpg" height="72" width="72" /><thr:total>2</thr:total></entry><entry gd:etag="W/&quot;DEUERXY7eyp7ImA9WhZUEkQ.&quot;"><id>tag:blogger.com,1999:blog-8497700570844644232.post-4412821018615183578</id><published>2011-06-05T17:10:00.002+05:30</published><updated>2011-06-05T23:20:04.803+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-05T23:20:04.803+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="IGNOU" /><title>MCS-051,June, 2010 ,</title><summary type="html">Write a web application for a online support 20     of a video library. This application should     have the following features :
   Add a new video information in the  library.
    Check in / check out process for  renting purpose.   
  Status report containing the current
   status of videos in the library. 

You are required to use the following tables for your online video library.





 &amp;lt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingForFuture/~4/pOxNnRtyNSY" height="1" width="1"/&gt;</summary><link rel="replies" type="application/atom+xml" href="http://www.programmingforfuture.com/feeds/4412821018615183578/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8497700570844644232&amp;postID=4412821018615183578&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/4412821018615183578?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8497700570844644232/posts/default/4412821018615183578?v=2" /><link rel="alternate" type="text/html" href="http://www.programmingforfuture.com/2011/06/mcs-051june-2010.html" title="MCS-051,June, 2010 ," /><author><name>Hemraj</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-qr3v1adUyw4/TetqnQlftII/AAAAAAAAAKs/s9tgOXcFd-w/s72-c/000003.jpg" height="72" width="72" /><thr:total>0</thr:total></entry></feed>
