JPA | Hibernate | Spring boot and Spring data JPA
Its all about connecting to database and persists the data in to database 1. JDBC way Write SQL statement, manually , iterate over resultSet , cumbersome 2. Spring JDBC, just provides templates but still write queries , mapping of data in to query little easy, using row mapper etc Provider easy query result mapper MyBatis: Its not really ORM, it actually maps query to object, done like Here myBatis will pull "user,desc," etc from todo argument. ------> Above all approaches are based on writing queries <-------------- Problem : Query changing and maintaining was problem. --> Hence JPA ----------------------------------------JPA --------------------------------------------------------------------------- Map classes to table, using EntityManager JPAQL --> complex search,criteria API Entiry = Table ...
Comments
Post a Comment