Spring Hibernate Integration

In this post we will be discussing on Spring Hibernate¬†integration. As we all know Spring provides an ORM support and one of the best available ORM tool to be integrated with Spring is Hibernate. The integration is very much simple and comes with lot of flexibility which is the biggest advantage Spring comes with. Lest create a step wise project for simple application. Continue reading “Spring Hibernate Integration”

Spring JDBC configuration

This post explains the Spring JDBC¬†configuration for accessing database in any Spring application. One or the most commonly used framework in java Spring gives support for ORM and JDBC, in this part we will look into configuration of JDBC with Spring. Continue reading “Spring JDBC configuration”

Convert String to XML file in Java.

Hello Friends,

In the previous example we have seen how to convert XMl to String. Now this example will do the exact opposite of the previous one i.e. convert from String to XML. We will now try to convert the String stream into an XML file object. Here is the simple code for that.

Continue reading “Convert String to XML file in Java.”

Convert XML file to String Object in Java.

Hello Friends,

This is one of my tutorials in java with respect to XML, to convert xml file to string. Sometimes while working with web-services we may come accross with the requirements of sending the updates to the web-service via a XML file. For the same you may need to convert the XML file into a stream of String (however we can pass XML file to web-services for updation). But, at some times if you need to update the values or attributes of the XML and then send it as String then following code will do it for you.

Continue reading “Convert XML file to String Object in Java.”