Spring overview ppt

Spring, JPA and Hibernate and spring mvc introduction ppt
Dr.DouglasPatton Profile Pic
Dr.DouglasPatton,United States,Teacher
Published Date:26-07-2017
Your Website URL(Optional)
Comment
Spring + JPA + HibernateAgenda  Persistence –JdbcTemplate –Hibernate  JPA  Spring – Spring 2.x – JPA featuresJ2EE 1.4 Reality Check  Common Technology Stack – Spring (IoC) – Hibernate (Light-Weight Persistence) – Stateless EJBJPA – Java Persistence API  JEE 5 / EJB3 Persistence  Provides an ORM framework similar to Hibernate / JDO  Good Bye Entity BeansSpring Persistence  Spring JDBC  Spring Hibernate  Spring JPA  Spring iBatis 5Issues with SQL  SQL isn’t hard... just tedious  redundant... repeating code 6Focus  DRY - Don’t Repeat Yourself  Testable  Concise  Stop forcing all the checked exceptions 7JDBCTemplate 8Remaining Challenges?  Testability... – in-memory DB – HSQLDB vs. Oracle – The code is tied to a dialect 9ORM - The Good  Object Relational Mapping – Makes the Dialect configurable – Testable – Used to increase time to market 10ORM - The Good  Issues / Warnings – Forces compromises in the relational datastore • primary keys • triggers • ... – Lazy vs. Eager decisions – As the project grows the ORM pain grows 11And the winner is... Hibernate Hibernate was the clear winner in the ORM race... However it wasn’t a standard... 12Spring Provides Hibernate Support 13Spring Hibernate Template 14Spring HibernateDaoSupport 15Spring HibernateTransactionManager 16Hibernate Consequences  XML focused – at least at the time  Not standard  Alternatives: JDO – Focused on ubiquitous data access instead of relational 17JPA 18JPA Benefits  Standards-Based  No Descriptors necessary  Annotated POJOs  Detached Object Support – Reduce Overhead of DTO / VO  Improve TestabilityJPA - Specification  Packaging  Entities  Entity Operations  Queries  Metadata  Life-cycle Model  Callbacks

Advise: Why You Wasting Money in Costly SEO Tools, Use World's Best Free SEO Tool Ubersuggest.