The document provides information about a course on persistence with Hibernate from Edureka. It outlines the objectives of the course, which include learning about Java enterprise architecture, Hibernate, object-relational mapping with Hibernate, Lucene for full-text search, NoSQL databases, and using Hibernate with NoSQL. It also provides contact information for queries.
ICT role in 21st century education and its challenges
Webinar: Persistence with Hibernate - Portal Development & Text Searching with Hibernate
1. www.edureka.co/persistence-with-hibernate
PERSISTENCE WITH HIBERNATE
View Persistence With Hibernate Course at: http://www.edureka.co/persistence-with-hibernate
For Queries:
Post on Twitter @edurekaIN: #askEdureka
Post on Facebook /edurekaIN
For more details please contact us:
US : 1800 275 9730 (toll free)
INDIA : +91 88808 62004
Email Us : sales@edureka.co
2. Slide 2 www.edureka.co/persistence-with-hibernate
At the end of this module, you will be able to understand:
Objectives
Java Enterprise
Java Enterprise Architecture
Hibernate
Java EE with Hibernate
ORM using Hibernate
Lucene
Lucene search and index
Lucene use case
NoSQL
NoSQL v/s SQL
NoSQL with OGM
NoSQL use case
Job Trends
3. Slide 3 www.edureka.co/persistence-with-hibernate
Provides collection of APIs and runtime environments to support Enterprise applications
Community driven software
Defines standard specifications which can be implemented by vendors
Provides services for:
» Persistence
» Messaging
» Web
» Transactions
Web services support using JAXRS(Rest) and JAXWS(SOAP)
JAVAEE – Enterprise Edition
5. Slide 5 www.edureka.co/persistence-with-hibernate
Hibernate
An Object Relational Mapping library of java language for object persistence and SQL databases
Transparent persistence of java objects with relational database
Provides query language in synch with SQL
Open source library
Provides solutions for object relational impedance mismatch problems
HIBERNATE
6. Slide 6 www.edureka.co/persistence-with-hibernate
JavaEE with Hibernate
HIBERNATE
Objective is to solve the complexities existed in EJB2 persistence
architecture
Provided an effective Java persistence API enabling hibernate to work
with different databases easily
Annotations provide meta data about table column definitions at the
model level
Entities are developed independent of the underlying database
Derby
Mysql
Oracle
7. Slide 7 www.edureka.co/persistence-with-hibernate
ORM using Hibernate
Provides a simple API for storing and retrieving Java objects directly to and from the database
Non-intrusive: No need to follow specific rules or design patterns
Transparent: Your object model is unaware
Java Object:
int id;
String name;
String getName()
int getId()
void setName(String)
SQL Table:
id [int] primary key,
name [varchar(50)]
Magic Happens Here
(O/R Mapper – i.e. Hibernate)
8. Slide 8 www.edureka.co/persistence-with-hibernate
Lucene – Full Text Search
An Apache library
Full text search capability
Developed on java API
Query results are returned by relevance
Fast, flexible and stable
Easy to integrate lucence search functionality to application
9. Slide 9 www.edureka.co/persistence-with-hibernate
Lucene – Indexing
One of the most base functionality of Lucene
Fields in the documents are analyzed by the IndexWriter
Creates/Updates the indexes
Indexes created/updated are equivalently stored/updated in directory
Document IndexWriter Directory
10. Slide 10 www.edureka.co/persistence-with-hibernate
Lucene – Search
Search operation is basically carried via IndexSearcher
Directory having indexes are passed to IndexSearcher
IndexSearcher reads the indexes in the directory with the help of IndexReader
Query to search is created using the QueryParser
Search performed with IndexSearcher against the query created by QueryParser
IndexSearcher returns TopDocs which contains the complete search details
TopDocsIndexSearcherQueryParser
IndexReader Directory
11. Slide 11 www.edureka.co/persistence-with-hibernate
Use-Case of Search
Lucence provides very efficient search capabilities on file system
Hibernate Search built on top of the Lucence search engine to address the short comings of lucence in domain
object models
Similarly to Hibernate which has been built in top of the SQL databases, Hibernate search built on top of Lucence
Hibernate address the short comings of lucence in domain object models with annotations
Manages entities when query made to database or as lucence query to index
15. Slide 15 www.edureka.co/persistence-with-hibernate
NoSQL
What is NoSQL?
Not Only SQL
Performs storage and retrieval of data in relational databases other than tabular format
Extensively used in big data domain
Lacks support for ACID
Can handle structured, semi structured and unstructured data
16. Slide 16 www.edureka.co/persistence-with-hibernate
NoSQL v/s SQL
SQL NoSQL
SCALING SQL relational databases multiple servers
are used for database load resulting in
expensive approach
NoSQL databases can scale horizontally
with the help of nodes
BIG DATA Have limitations in handling huge data
volume
Can handle huge volume of data in a
distributed database approach
Schema Can be changed any time Changing schema is always a challenge
once defined
Server Cost Proprietary servers and storage systems
are expensive
Use of cheap commodity hardware
17. Slide 17 www.edureka.co/persistence-with-hibernate
Hibernate OGM
OGM – Object Grid Mapper
It provides Java Persistence (JPA) support for NoSQL solutions
Object Relational Mapping for NoSQL Databases
Provides support for most of the NoSQL database types
Scaling of relational databases with a NoSQL front end and with no change in domain model
HIBERNATE OGM
21. Slide 21 www.edureka.co/persistence-with-hibernate
Hibernate Skills
Hibernate Tools – Enables RDBMS mappings & associations with domain objects, hence should have knowledge on
databases
SQL Skills – Demonstrates the traditional SQL skills to understand table relations
Coding Skills – Should possess java coding skills in using annotations & xml mappings for domain objects
OOP Skills – Should possess Object oriented programming skills to deal with Hibernate inheritance and polymorphism
Skills Products
Database Mysql, Oracle or any RDBMS vendor
Coding Java
Configuration Management Eclipse, Hibernate tools
SQL Mysql, Oracle or any RDBMS vendor
Hibernate Skill Matrix
23. Slide 23 www.edureka.co/persistence-with-hibernate
20% Discount on Persistence with Hibernate Course
Offer valid only for 14th Feb 2015 Batch
20%
OFF
You can avail the above discount by using this link http://goo.gl/rPG3iw
25. Slide 25 www.edureka.co/persistence-with-hibernate
Course Topics
Module 1
» Introduction to ORM & Hibernate
Module 2
» Persistence and Session Factory
Module 3
» Mapping , Inheritance and Types
Module 4
» Criteria and Query Language
Module 5
» Transactions ,Filter and Performance
Module 6
» Search and Validation Framework
Module 7
» OGM, No Sql and Spring
Module 8
» Project
26. LIVE Online Class
Class Recording in LMS
24/7 Post Class Support
Module Wise Quiz
Project Work
Verifiable Certificate
Slide 26 www.edureka.co/persistence-with-hibernate
How it Works?