Simple Spring Hibernate App

Open Spring Tool Suite File -> New -> Spring Template Project Persistence -> Simple Spring Hibernate Utility Project Project Name: hibernateExample Top Level Package: com.skills421.examples.hibernate01 Finish Modifying the Code to Extend our Simple JDBC App File -> New -> Class Package: com.skills421.examples Name: Person Now Create a simple POJO called Person as follows: We want to... Continue Reading →

Create a Simple JDBC App

Download and Install Spring Tool Suite http://www.springsource.org/sts Create a Maven Project Run Spring Tool Suite New -> Maven -> Maven Project Select the default quickstart archetype org.apache.maven.archetypes maven-archetype-quickstart Enter a Group Id and Artifact Id for the app: Group Id: com.skills421.jdbc Artifact Id: jdbcExample Edit Pom.xml Edit App.java Run App.java name = John Dunning age... Continue Reading →

Creating a Simple Postgres Database

Download and install Postgres Download Postgres from the Download Site For the Mac, download the Postgres App Edit the Path Variable On a Mac Open a Terminal Session Add the following line to your .profile export PATH=$PATH:/Applications/Postgres.app/Contents/MacOS/bin/ run your .profile . ./.profile Start the Postgres Database by clicking the Postgres app Create a Database psql... Continue Reading →

Installing Apache Maven

Download and install Java from here Download Apache Maven from here Follow the instructions to install Maven add the following lines to your .profile: . ./.profile mvn --version Create a Sample Project from the Command Line CD to your Development Root folder mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false This creates the following directory structure: my-app +- pom.xml... Continue Reading →

Up ↑

%d bloggers like this: