English French German Italian Portuguese Russian Spanish

logo_old

  • Java Training

    javaInterSource offers live instructor-led courses on all important Java-related technologies, including Apache Struts, Enterprise Java Beans (EJB), J2SE Desktop Java Enterprise Edition (Java EE), Java Fundamentals, Java Web Services, JavaServer Faces, JBoss, Java Server Pages (JSP), and Spring.

    Please refer to our detailed course outlines below.

  • About Java

    Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM) regardless of computer architecture

    Java is general-purpose, concurrent, class-based, and object-oriented, and is specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere". Java is considered by many as one of the most influential programming languages of the 20th century, and widely used from application software to web application.

    Read More

  • Course Details Java

    Classes are offered at client sites, at our Geneva training center, and via a live web conference. For detailed course outlines and scheduled classes, please see below.

    To book training, navigate to the course you need, then:

    • For scheduled online classes, register from the choices indicated.
    • If you need an alternative date, time or location, or if you want a live classroom course, click on “request an offer for this course,” to complete the form.

Java Persistence with Spring

 PDF PrintEmail

Course duration

  • 4 Days

Course Outline

This course enables the experienced Java developer to use the Spring application framework to manage objects in a lightweight "IoC" (inversion-of-control) container and to manage persistent objects using Spring's support for DAOs and transaction control. Spring is a far-reaching framework that aims to facilitate all sorts of Java development, including every level of multi-tier distributed systems. Here we focus on the Core and persistence modules, with a brief stop in the Web module to support hands-on exercises in Spring persistence for web applications.

Spring supports a wide range of persistence technology: everything from raw JDBC to sophisticated object/relational mapping tools such as Hibernate and TopLink, and also the new Java standard for those tools, the Java Persistence API. We work at either end of this spectrum, with exercises on improving JDBC code with Spring templates and transaction management, and also how to integrate JPA entities and DAOs into Spring applications and to deploy Spring transactions over JPA.

  • Understand the scope, purpose, and architecture of Spring.
  • Use Spring's bean factories and application contexts to declare application components, rather than hard-coding their states and lifecycles.
  • Use dependency injection to further control object relationships from outside the Java code base.
  • Use annotations to take advantage of Spring post-processors for automated bean instantiation and wiring.
  • Create validators for business objects, and associate them for application-level and unit-testing uses.
  • Build a web application as a Spring DispatcherServlet and associated application context.
  • Connect business objects to persistent stores using Spring's DAO and ORM modules.
  • Simplify JDBC code using Spring templates.
  • Integrate JPA entities and DAOs into Spring applications.
  • Declare and enforce transaction requirements using Spring.
  • Java programming
  • Basic knowledge of XML
  • Web development with servlets and JSP
  1. Overview of Spring
    1. Java EE: The Good, The Bad, and the Ugly
    2. Enter the Framework
    3. Spring Value Proposition
    4. The Spring Container
    5. Web Applications
    6. Persistence Support
    7. Aspect-oriented Programming
    8. The Java EE Module(s)
    9. Integrating Other Frameworks
  2. The Container
    1. JavaBeans, Reconsidered
    2. The Factory Pattern
    3. Inversion of Control
    4. XML View: Declaring Beans
    5. Java View: Using Beans
    6. Singletons and Prototypes
  3. Instantiation and Configuration
    1. Configuring Through Properties
    2. Configuration Namespaces
    3. The p: Notation
    4. Bean (Configuration) Inheritance
    5. Configuring Through Constructors
    6. Bean Post-processors
    7. Lifecycle Hooks
    8. Integrating Existing Factory Code
    9. Awareness Interfaces
  4. Dependency Injection
    1. Complex Systems
    2. Assembling Object Graphs
    3. Dependency Injection
    4. Single and Multiple Relationships
    5. The Utility Schema
    6. Bean Aliases
    7. Inner Beans
    8. Autowiring
    9. @Component, @Service, & Company
    10. @Autowired Properties
    11. Best Practices with Spring Annotations
  5. Assembling Object Models
    1. Collections and Maps
    2. Support for Generics
    3. The Spring Utility Schema (util:)
    4. Autowiring to Multiple Beans
    5. Order of Instantiation
    6. Bean Factory vs. Application Context
  6. Validation
    1. Validators
    2. The Errors Object
    3. ValidationUtils
    4. Error Messages and Localization
    5. Nested Property Paths
  7. The Web Module
    1. Servlets and JSPs: What's Missing
    2. The MVC Pattern
    3. The Front Controller Pattern
    4. DispatcherServlet
    5. A Request/Response Cycle
    6. The Strategy Pattern
    7. Web Application Contexts
    8. Annotation-Based Handler Mappings
    9. @Controller and @RequestMapping
    10. "Creating" a Model
    11. Views and View Resolvers
  8. Templates and DAOs
    1. The DAO Pattern
    2. The DaoSupport Hierarchy
    3. The DataAccessException Hierarchy
    4. JDBC DAOs
    5. JdbcTemplate and RowMapper<T>
  9. Working with JPA
    1. Object/Relational Mapping
    2. The Java Persistence API
    3. Hibernate
    4. @Entity and Other JPA Annotations
    5. Entity Managers and Factories
    6. The Persistence Unit
    7. JpaDaoSupport and JpaTemplate
    8. Configuration Issues
  10. Transactions
    1. Transaction Managers
    2. Transaction Advice
    3. AOP vs. Annotations
    4. JDBC Transaction Manager
    5. JPA Transaction Manager
    6. Entity States
    7. Extended Persistence Contexts

InterSource Geneva, a premier Information Technology training firm, offers over 400 different courses on server, database and programming technologies, as well as end-user classes for the most popular office, graphics and design applications. We serve clients in Switzerland (Geneva, Lausanne, Bern, Basel, Zurich) and throughout Europe (France, Germany, Austria, Finland, Sweden, England, Netherlands, Spain, etc.).


InterSource offers custom, private courses at client sites, standard public courses in our Geneva classroom, and online training via live Web conference. Training is offered in English and many other languages (Francais, Deutsch, Espanol, Italiano.)


For an overall view of our offerings, please visit us at www.intersource.ch.