spring-example.blogspot.com
Spring Examples: Spring JDBC Implementing RowMapper
http://spring-example.blogspot.com/2012/04/spring-jdbc-implementing-rowmapper.html
Sunday, April 29, 2012. Spring JDBC Implementing RowMapper. In this tutorial, we implement a custom RowMapper class to map our domain objects. We then use this class to write fetch methods that return custom model objects. Student List Student org.springframework.jdbc.core.JdbcTemplate.query(String sql, RowMapper Student rowMapper) throws DataAccessException. Public T List T query(String sql,. Description copied from interface: JdbcOperations. Query in interface JdbcOperations. Sql - SQL query to execute.
spring-example.blogspot.com
Spring Examples: April 2012
http://spring-example.blogspot.com/2012_04_01_archive.html
Monday, April 30, 2012. Spring Named Parameter JDBC Template. We'll use the NamedParameterJdbcTemplate class to run queries with named placeholders. SimpleJdbcTemplate is deprecated in Spring 3.1. NamedParameterJdbcTemplate is remaining and should be used for named parameter use. If you don't want to create two templates you can always call getJdbcOperations() on the NamedParameterJdbcTemplate to get access to the regular JdbcOperations interface of the JdbcTemplate. Package com.venkat;. System.out&...
spring-example.blogspot.com
Spring Examples: Spring Named Parameter JDBC Template
http://spring-example.blogspot.com/2012/04/spring-named-parameter-jdbc-template.html
Monday, April 30, 2012. Spring Named Parameter JDBC Template. We'll use the NamedParameterJdbcTemplate class to run queries with named placeholders. SimpleJdbcTemplate is deprecated in Spring 3.1. NamedParameterJdbcTemplate is remaining and should be used for named parameter use. If you don't want to create two templates you can always call getJdbcOperations() on the NamedParameterJdbcTemplate to get access to the regular JdbcOperations interface of the JdbcTemplate. Package com.venkat;. System.out&...
spring-example.blogspot.com
Spring Examples: May 2012
http://spring-example.blogspot.com/2012_05_01_archive.html
Saturday, May 12, 2012. Hibernate With Spring DAO. In this tutorial you will see how to integrate spring DAO and hibernate. I assume you are comfortable with both spring and hibernate. At the end of this example you will learn how to use Spring DAO . Here I am using MyEcplise IDE and Oracle 10g Database. Xml version='1.0' encoding='UTF-8'? Generated by MyEclipse Hibernate Tools. - hibernate-configuration session-factory property name="dialect" org.hibernate.dialect.Oracle10gDialect /prope...Beans xmlns="...
spring-hibernate-example.blogspot.com
Hibernate Examples: March 2012
http://spring-hibernate-example.blogspot.com/2012_03_01_archive.html
Monday, March 26, 2012. Give the context of this presentation. What else is out there besides Hibernate. Cover some common terms. What it takes to persist your classes and fields. Working with Persistent Objects. This could probably be an entire presentation by itself. Warning: I am not an expert, but rather a battle scarred Hibernate user since 2007. Subscribe to: Posts (Atom). Do you like myblog. Hibernate Many to Many Example. Xml version=1.0 encoding=utf-8? Hibernate One Class Two Tables. Package com...
spring-hibernate-example.blogspot.com
Hibernate Examples: Hibernate One to Many Mapping Example
http://spring-hibernate-example.blogspot.com/2012/04/hibernate-one-to-many-mapping-example.html
Saturday, April 21, 2012. Hibernate One to Many Mapping Example. Package com.hibernate.venkat;. Import java.util.List;. Import javax.persistence.CascadeType;. Import javax.persistence.Entity;. Import javax.persistence.FetchType;. Import javax.persistence.GeneratedValue;. Import javax.persistence.Id;. Import javax.persistence.OneToMany;. Public class College {. Private int collegeId;. Private String collegeName;. Private List Student students;. Public int getCollegeId() {. ThiscollegeId = collegeId;.
spring-hibernate-example.blogspot.com
Hibernate Examples: Hibernate Annotation Examples
http://spring-hibernate-example.blogspot.com/2012/04/hibernate-annotation-examples.html
Saturday, April 21, 2012. Package com.hibernate.venkat;. Import java.util.Calendar;. Import java.util.Date;. Import javax.persistence.Basic;. Import javax.persistence.Column;. Import javax.persistence.Entity;. Import javax.persistence.Id;. Import javax.persistence.Table;. Import javax.persistence.Temporal;. Import javax.persistence.TemporalType;. Import javax.persistence.Transient;. Public class Employee {. Private int empId;. Private String empName;. Private String empPassword;. Public int getEmpId() {.
spring-example.blogspot.com
Spring Examples: Hibernate With Spring DAO
http://spring-example.blogspot.com/2012/05/hibernate-with-spring-dao.html
Saturday, May 12, 2012. Hibernate With Spring DAO. In this tutorial you will see how to integrate spring DAO and hibernate. I assume you are comfortable with both spring and hibernate. At the end of this example you will learn how to use Spring DAO . Here I am using MyEcplise IDE and Oracle 10g Database. Xml version='1.0' encoding='UTF-8'? Generated by MyEclipse Hibernate Tools. - hibernate-configuration session-factory property name="dialect" org.hibernate.dialect.Oracle10gDialect /prope...Beans xmlns="...