Mar 22, 2019
1.7k likes | 2.85k Views
Hibernate. Dasan Weerarathne. Introduction. Hibernate allows to persist the java objects using its’ Object/Relational Mapping (ORM) framework. It is automates ORM and considerably reduces the number of lines of code needed to persist the object in the database.
Share Presentation
- relational database
- database tables
- mckoi sql org
- microsoft sql server org
Presentation Transcript
Hibernate DasanWeerarathne
Introduction • Hibernate allows to persist the java objects using its’ Object/Relational Mapping (ORM) framework. • It is automates ORM and considerably reduces the number of lines of code needed to persist the object in the database. • Hibernate can be used in Java Swing applications, Java Servlet-based applications, or J2EE applications using EJB session beans.
Advantages of Using Hibernate • Relational Persistence for JAVA • Working with both Object-Oriented software and Relational Database is complicated task with JDBC because there is mismatch between how data is represented in objects versus relational database. • JDBC, developer has to write code to map an object model's data representation to a relational data model and its corresponding database schema • Hibernate is flexible and powerful ORM solution to map Java classes to database tables. • Hibernate itself takes care of this mapping using XML files so developer does not need to write code for this.
Advantages of Using Hibernate • Transparent Persistence • The automatic mapping of Java objects with database tables. • Hibernate provides transparent persistence and developer does not need to write code explicitly to map database tables tuples to application objects during interaction with RDBMS. (With JDBC this conversion is to be taken care of by the developer manually with lines of code. )
Advantages of Using Hibernate • Support for Query Language • JDBC supports only native Structured Query Language (SQL). Developer has to find out the efficient way to access database. • Hibernate provides a powerful query language Hibernate Query Language (independent from type of database) that is expressed in a familiar SQL like syntax and includes full support for polymorphic queries. • Hibernate also selects an effective way to perform a database manipulation task for an application.
Advantages of Using Hibernate • Database Dependent Code • Application using JDBC to handle persistent data (database tables) having database specific code in large amount. The code written to map table data to application objects and vice versa is actually to map table fields to object properties. As table changed or database changed then it’s essential to change object structure as well as to change code written to map table-to-object/object-to-table. • Hibernate provides this mapping itself. The actual mapping between tables and application objects is done in XML files. If there is change in Database or in any table then the only need to change XML file properties.
Advantages of Using Hibernate • Maintenance Cost • With JDBC, it is developer’s responsibility to handle JDBC result set and convert it to Java objects through code to use this persistent data in application. So with JDBC, mapping between Java objects and database tables is done manually. • Hibernate reduces lines of code by maintaining object-table mapping itself and returns result to application in form of Java objects. It relieves programmer from manual handling of persistent data, hence reducing the development time and maintenance cost.
Advantages of Using Hibernate • Optimize Performance • Caching is retention of data, usually in application to reduce disk access. • Hibernate, with Transparent Persistence, cache is set to application work space. • Relational tuples are moved to this cache as a result of query. It improves performance if client application reads same data many times for same write. Automatic Transparent Persistence allows the developer to concentrate more on business logic rather than this application code. (With JDBC, caching is maintained by hand-coding)
Advantages of Using Hibernate • Automatic Versioning and Time Stamping • By database versioning one can be assured that the changes done by one person is not being roll backed by another one unintentionally. • Hibernate enables developer to define version type field to application, due to this defined field Hibernate updates version field of database table every time relational tuple is updated in form of Java class object to that table. So if two users retrieve same tuple and then modify it and one user save this modified tuple to database, version is automatically updated for this tuple by Hibernate. (In JDBC there is no check that always every user has updated data. This check has to be added by the developer)
Disadvantages of Hibernate • Steep learning curve. • Use of Hibernate is an overhead for the applications which are : • Simple and use one database that never change • Need to put data to database tables, no further SQL queries • There are no objects which are mapped to two different tables (Hibernate increases extra layers and complexity. So for these types of applications JDBC is the best choice.)
Disadvantages of Hibernate • Anybody wanting to maintain application using Hibernate will need to know Hibernate. • For complex data, mapping from Object-to-tables and vise versa reduces performance and increases time of conversion. • Hibernate does not allow some type of queries which are supported by JDBC.
Hibernate Architecture Application Persistence Object Hibernate Configuration File Mapping File Relational Database
Hibernate Architecture Cont… • To use Hibernate, it is required to create Java classes that represents the table in the database and then map the instance variable in the class with the columns in the database. • Then Hibernate can be used to perform operations on the database like select, insert, update and delete the records in the table. • Hibernate automatically creates the query to perform these operations.
Hibernate Architecture Cont… • Hibernate architecture has three main components: • Connection Management: • Hibernate Connection management service provide efficient management of the database connections. • Database connection is the most expensive part of interacting with the database as it requires a lot of resources of open and close the database connection. • Transaction Management: • Transaction management service provide the ability to the user to execute more than one database statements at a time.
Hibernate Architecture Cont… • Object Relational Mapping : • Object relational mapping is technique of mapping the data representation from an object model to a relational data model. • This part of the hibernate is used to select, insert, update and delete the records form the underlying table. • When we pass an object to a Session.save() method, Hibernate reads the state of the variables of that object and executes the necessary query.
Hibernate Architecture Cont…
Hibernate Architecture Cont… • SessionFactory (org.hibernate.SessionFactory) A threadsafe (immutable) cache of compiled mappings for a single database. A factory for Session and a client of ConnectionProvider. Might hold an optional (second-level) cache of data that is reusable between transactions, at a process- or cluster-level. • Session (org.hibernate.Session) A single-threaded, short-lived object representing a conversation between the application and the persistent store. Wraps a JDBC connection. Factory for Transaction. Holds a mandatory (first-level) cache of persistent objects, used when navigating the object graph or looking up objects by identifier.
Hibernate Architecture Cont… • Transaction (org.hibernate.Transaction) A single-threaded, short-lived object used by the application to specify atomic units of work. Abstracts application from underlying JDBC, JTA or CORBA transaction. A Session might span several Transactions in some cases. However, transaction demarcation, either using the underlying API or Transaction, is never optional! • ConnectionProvider (org.hibernate.connection.ConnectionProvider) A factory for (and pool of) JDBC connections. Abstracts application from underlying Datasource or DriverManager. Not exposed to application, but can be extended/implemented by the developer.
Hibernate Architecture Cont… • TransactionFactory (org.hibernate.TransactionFactory) A factory for Transaction instances. Not exposed to the application, but can be extended/implemented by the developer.
Creating First Hibernate App • Before you start coding you have to download Hibernate Framework from the following URL.http://olex.openlogic.com/packages/hibernate#package_detail_tabs • Create Database “vtshibernate” and Create table “contact” at the MySQL database.
First Hibernate App Cont… • Create Java Project using E-clips “FirstHibernateProject” • Create package under the src directory. (com.virtusa.contact) • Create hibernate.cfg.xml under the src folder. • Create contact.hbm.xml under the src folder. • Add doc type URL for both .xml files.
First Hibernate App Cont… • Completed hibernate.cfg.xml
Hibernate for Different Databases • DB2 - org.hibernate.dialect.DB2Dialect • HypersonicSQL - org.hibernate.dialect.HSQLDialect • Informix - org.hibernate.dialect.InformixDialect • Ingres - org.hibernate.dialect.IngresDialect • Interbase - org.hibernate.dialect.InterbaseDialect • Pointbase - org.hibernate.dialect.PointbaseDialect • PostgreSQL - org.hibernate.dialect.PostgreSQLDialect • Mckoi SQL - org.hibernate.dialect.MckoiDialect • Microsoft SQL Server - org.hibernate.dialect.SQLServerDialect • MySQL - org.hibernate.dialect.MySQLDialect • Oracle (any version) - org.hibernate.dialect.OracleDialect • Oracle 9 - org.hibernate.dialect.Oracle9Dialect • Progress - org.hibernate.dialect.ProgressDialect • FrontBase - org.hibernate.dialect.FrontbaseDialect • SAP DB - org.hibernate.dialect.SAPDBDialect • Sybase - org.hibernate.dialect.SybaseDialect • Sybase Anywhere - org.hibernate.dialect.SybaseAnywhereDialect
First Hibernate App Cont… • Completed contact.hbm.xml
First Hibernate App Cont… • <hibernate-mapping>
First Hibernate App Cont… • <class>
First Hibernate App Cont…
First Hibernate App Cont… • <id>
First Hibernate App Cont… • < generator> There are shortcut names for the built-in generators as shown below:
First Hibernate App Cont… • < property >
First Hibernate App Cont… • Create the Java class called Contact having getters and setters:
First Hibernate App Cont… • Create Test Class to Insert new Record to the Database:
First Hibernate App Cont… • Your Final Project Should appear as below:
Second Hibernate Example • Create new project to maintain following Book table. • Hint: It is enough to add Book Record to the table.
Third Hibernate Example • Create new project to maintain Insurance Information: • Hit: The program should provide functionality to add Insurance Information and also should provide functionality to modify the given Insurance information. • Now Modify the program to delete a given insurance Information
Hibernate Query Language • HQL is much like SQL and are case-insensitive, except for the names of the Java Classes and properties. • Hibernate Query Language is used to execute queries against database. • Hibernate automatically generates the sql query and execute it against underlying database if HQL is used in the application. • HQL is based on the relational object models and makes the SQL object oriented. • Hibernate Query Language uses Classes and properties instead of tables and columns.
Advantage of using HQL • Full support for relational operations: HQL allows representing SQL queries in the form of objects. Hibernate Query Language uses Classes and properties instead of tables and columns • Return result as Object: The HQL queries return the query result(s) in the form of object(s), which is easy to use. This eliminates the need of creating the object and populate the data from result set.
Advantage of using HQL • Polymorphic Queries: HQL fully supports polymorphic queries. Polymorphic queries results the query results along with all the child objects if any. • Support for Advance features: HQL contains many advance features such as pagination, fetch join with dynamic profiling, Inner/outer/full joins, Cartesian products. It also supports Projection, Aggregation (max, avg) and grouping, Ordering, Sub queries and SQL function calls.
Understanding HQL Syntax • Any Hibernate Query Language may consist of following elements: • Clauses (from, select, where, order by, group by) • Aggregate functions (avg, min, max, sum, count) • Sub queries (query within another query)
Create following Data Set
Writing HQL Queries • Write HQL Query to View all the available data at the table. • Write a HQL query to get total count of the all the records. • Write a HQL query to get count of the insurance based on the Amount.
Writing HQL Queries Cont… • Write a HQL query to get count of the insurance based on the Insurance Name. • Write HQL query to get the Avg/Max/Min of the total Amounts.
Criteria Query • The interface org.hibernate.Criteria represents a query against a particular persistent class. The Session is a factory for Criteria instances. • An individual query criterion is an instance of the interface org.hibernate.criterion.Criterion. • The class org.hibernate.criterion.Restrictions defines factory methods for obtaining certain built-in Criterion types. Ref: http://docs.jboss.org/hibernate/core/3.3/reference/en/html/querycriteria.html
Criteria Query Cont… • Criteria Interface provides the following methods
Criteria Query Cont… • Class Restriction provides built-in criterion via static factory methods
Criteria Query Cont…
Criteria Query Cont… • Criteria Query Exercises 01: • Create Sample program to display Insurance records which are having Amount in-between 1000 and 2500. (Make sure that you should display maximum only 5 records) • Criteria Query Exercises 02: • Create sample program to return Insurance records which are having investment date in-between 2005/01/01 to 2005/03/03. (Make sure that you should display maximum only 5 records)
- More by User
Hibernate. Marcin Pamuła Mateusz Stefek. Plan prezentacji. 1. Wstęp 2. EJB i JDBC a Hibernate 3. Architektura 4. Instalacja 5. Tworzenie najprostszej aplikacji hibernatowej 6. Możliwości Hibernata 7. Połączenie z Hibernata z JBOSSem 8 Podsumowanie. Wstęp.
649 views • 39 slides
Hibernate. Netbeans-Database-Hibernate Downloads. Download Jdk and install Download Java IDE ( Netbeans ,Eclipse) Setup a Database ( Postgresql , MySQL , Oracle ..) Download hibernate files from http :// sourceforge.net/projects/hibernate/files/ hibernate Core hibernate annotations.
423 views • 8 slides
Hibernate. What is Hibernate ? An Object / Relational Mapping (ORM) framework for Java
329 views • 7 slides
Hibernate. Hibernate.
814 views • 68 slides
Hibernate. Introduction. ORM goal: Take advantage of the things SQL databases do well, without leaving the Java language of objects and classes. ORM real goal: Do less work and have a happy DBA.
336 views • 7 slides
JPA / HIBERNATE
JPA / HIBERNATE. CSCI 6370 Nilayan Bhattacharya Sanket Sable. Object-Relational Mapping. It is a programming technique for converting object-type data of an object oriented programming language into database tables.
1.01k views • 8 slides
http://www.learntek.org/product/hibernate-training/ Learntek is global online training provider on Big Data Analytics, Hadoop, Machine Learning, Deep Learning, IOT, AI, Cloud Technology, DEVOPS, Digital Marketing and other IT and Management courses. We are dedicated to designing, developing and implementing training programs for students, corporate employees and business professional. www.learntek.org
210 views • 12 slides
Free PowerPoint and Google Slides Templates for your Presentations
Free for any use, no registration or download limits
Featured Slide Themes
Editor's Choice
Ready-to-teach Lessons
Social Media
Executive Summary
- Professional
Teaching Resources
Recent slideshow templates.
Dark Minimalist Business Slides
Unlock the power of simplicity with our Minimalist Business Slides template, tailored specifically for business professionals seeking to make an ... Read more
Animated Geometric Interactive Digital Marketing Canvas
Get ready to jazz up your next marketing meeting with our colorful, animated risograph shapes PowerPoint and Google Slides template! ... Read more
Collage Animated Aesthetic Notes for School
Looking to spice up your school presentations? Our Animated Aesthetic Notes template is just the ticket for students eager to ... Read more
Hand-drawn Bahasa Indonesia Foreign Language Subject for Middle School
Hey teachers, ready to make learning Bahasa Indonesia a blast for your middle schoolers? Snap up this doodle illustrative slideshow ... Read more
Minimalist Aesthetic Feed – Social Media Planner
Perfect for marketing gurus looking to amp up their social media game, this PowerPoint and Google Slides template is your ... Read more
Taylor Swift Aesthetic Eras Tour
Get ready to shake it off with our colorful slideshow template that’s perfect for any Swiftie or pop culture fan ... Read more
Geometric Interview Tips & Preparation Slides
Elevate your interview game with our modern, geometric-patterned presentation template, perfect for business professionals looking to make a memorable impact. ... Read more
Cute Group Brainstorming Organizer
Get your team’s creative juices flowing with our charming collaboration board template, perfect for anyone looking to spice up their ... Read more
Simple Geometric Brainstorm Slides
Unleash your creativity with our Modern Geometric template, perfect for students eager to brainstorm innovative ideas. With its playful mix ... Read more
Aesthetic Student of the Month Poster
Celebrate your star pupils in style with this eye-catching poster template, perfect for educators looking to shout out their students’ ... Read more
Cute Classroom Calendar
Get your class buzzing with excitement with this adorable planner template! Perfect for teachers who want to add a splash ... Read more
Simple Business Development Manager CV Resume
Crafted for the ambitious business professional aiming to stand out in the competitive job market, this sleek, black and white ... Read more
Classic Family Feud Scoreboard Background
Get ready to bring the fun and excitement of your favorite game show right to your living room with our ... Read more
Vintage Tortured Poets Department Album Aesthetic for Swifties
Ready to give your presentations a makeover that screams minimalist chic with a side of poetic flair? This slideshow template ... Read more
Pixel Art My Dad’s a Superhero
Are you ready to show the world how awesome your dad is? Our latest slideshow template is perfect for anyone ... Read more
Aesthetic Indonesian History Master’s Degree
Hey teachers, get your class hooked on history with our latest slideshow template! Designed with a cool modern notebook vibe ... Read more
Illustrated Social Studies Subject for Middle School: All About Indonesia
Hey teachers, get ready to jazz up your middle school social studies classes with our “All About Indonesia” PowerPoint and ... Read more
Modern Illustrated Indonesian Wholesale and Retail Trade Business Plan
Crafted specifically for savvy business pros eyeing the bustling markets of Indonesia, this slideshow template is your golden ticket to ... Read more
Cute Indonesian Flag Raising
Hey teachers, get your class buzzing with excitement for Indonesia’s National Day with our eye-catching PowerPoint and Google Slides template. ... Read more
Illustrated Indonesian National Awakening Day
Hey teachers, get ready to jazz up your history lessons with our latest presentation template! Celebrate the spirit of Indonesian ... Read more
Simple Indonesian Independence Day
Get your classroom buzzing with excitement with our vibrant, bold illustrative PowerPoint and Google Slides template, perfect for teachers aiming ... Read more
Professional Stocks Trading Business Plan
Perfect for finance pros ready to step up their game, this PowerPoint and Google Slides template is your go-to for ... Read more
Clean Minimal Meeting with Animated Icons
Hey business pros! Ready to jazz up your next team meeting or client presentation? This slide deck is your new ... Read more
Minimal Professional Management Consulting Firm Brand Slides
Elevate your business presentations with our Minimal Gradient template, tailored for ambitious business professionals. This sleek, blue-themed PowerPoint and PPT ... Read more
Modern Minimal Company Internal Deck Slides
Elevate your business presentations with our Modern Abstract template, designed exclusively for forward-thinking business professionals. Whether you’re crafting a compelling ... Read more
Minimal Real Estate Agent Orientation Slides
Dive into the world of real estate marketing with this elegant and minimal presentation offering. Perfectly designed for corporate webinars, ... Read more
Illustrated Project Status Report Executive Summary Slides
Hey business pros! Keep your team and stakeholders in the loop without skipping a beat with our Project Status Report ... Read more
Minimal Illustrated Human Resource Management Training
Looking to jazz up your HR training sessions? Check out our latest PowerPoint and Google Slides template, perfect for HR ... Read more
Modern Minimal Airline Business Plan
Get your aviation venture off the ground with our sleek, modern PowerPoint and Google Slides template, tailored specifically for the ... Read more
Illustrated Navigating Airports and Connections App Pitch Deck
Get ready to take your industrial sector audience on a journey with our latest PowerPoint and Google Slides template! Perfect ... Read more
Minimal Metal Detector Robots for Airports Business Plan
Perfect for industry innovators and tech wizards, this violet-themed, simple illustrative slideshow template is your go-to for pitching your next ... Read more
Cute Celebrating 5 Years Social Media
Ready to make your social media anniversary pop? This cute, illustrative PowerPoint and Google Slides template is perfect for anyone ... Read more
Chalkboard Background Slides
This Doodle-inspired Presentation Template is designed for educators. It’s perfect for a myriad of use-cases from lesson plans to project ... Read more
Watercolor Anti-Bullying Campaign: Stop the Hate!
Get your message across with our vibrant blue and violet watercolor illustrated PowerPoint and Google Slides template, perfect for marketing ... Read more
Vintage Education Pack for Students Slides
Explore the realms of knowledge with our Education Pack for Students template. Ideal for teachers, this Art Nouveau-inspired, brown-themed PowerPoint ... Read more
Cute Self Introduction for First Day of Class Slides
Make a lasting impression on your first day of class with our ‘Self Introduction Template’. Ideal for students, this slideshow ... Read more
Interactive Bulletin Board Slides
Awaken curiosity and engage students of all ages from pre-school to high school, with this creatively designed PowerPoint and Google ... Read more
Illustrated Teacher Resume Slides
Showcase your teaching skills in a vibrant and captivating manner with these green and yellow illustrated templates for Powerpoint and ... Read more
Elegant Traditional Indonesian Folklore Dances
Hey teachers, get your class moving and grooving with our elegant floral-patterned slideshow template, perfect for showcasing the vibrant world ... Read more
Cool Social Media Report with Cycle Diagrams
Hey marketing whizzes, get ready to jazz up your social media reports with our standout slideshow template! Decked out in ... Read more
Scrapbook Go Green Social Media Strategy
Perfect for marketing mavens looking to spruce up their social media game with an eco-friendly twist, this PowerPoint and Google ... Read more
Dark Sales Strategy and Digital Marketing
Hey sales pros! Ready to ramp up your game with a killer strategy? Our animated minimal slideshow template in cool ... Read more
Maximalist Interior Design Catalog Slides
Immerse your audience in a world of artistry and elegance with this Maximalism-inspired PowerPoint and Google Slides template! Ideal for ... Read more
Modern Instagram Style Marketing Campaign
Hey marketing mavens! Ready to jazz up your next campaign with a splash of pink and orange? Our modern minimal ... Read more
Pastel Floral Product Launch Slides
Send waves through your community with this new product launch project proposal template. This theme is great for coaches, consultants, ... Read more
Creative Black History Month Biography Slides
Celebrate the legends of Black History Month with our vibrant, geometric doodle-inspired slideshow template! Perfect for educators, students, and anyone ... Read more
Illustrated Design Inspiration for Social Media
Get your social media popping with our slick PowerPoint and Google Slides template, perfect for marketing pros! Wrapped in fresh ... Read more
Cute Animated Back to School Social Media
Hey marketing mavens, get ready to charm your audience with our vibrant, cute animated illustrative slideshow template! Perfect for crafting ... Read more
Modern Minimal Healthcare Provider Brand Slides
Elevate your healthcare presentations with our Modern Healthcare Presentation Template, designed exclusively for health professionals. This template, featuring a soothing ... Read more
Blue Minimalistic Medical Technology Breakthroughs Slides
Champion good science communication with these medical technology breakthrough slides, easy to use as a Google Slides template, PowerPoint theme ... Read more
Cute Pastel Medical-Surgical Nursing Slides
Introducing our Medical-Surgical Nursing presentation template, designed exclusively for health professionals. With its dominant green color and pastel, cute illustrative ... Read more
Modern 3D Pharmacy Technician Resume Slides
Experience a new dimension in showcasing your pharmacy expertise with our contemporary 3D Powerpoint and Google Slides templates. Designed in ... Read more
Modern Minimal Nursing Slides
Perfect for individuals pursuing a career in nursing or education, this elegant and minimalistic PowerPoint and Google Slides template radiates ... Read more
Futuristic Artificial Neural Networks Conference Slides
Take your audience on a journey into the digital world with this modern, geometric-themed Powerpoint and Google Slides template. Its ... Read more
Simple Hygiene Training Workshop
Get your hospitality team up to snuff with our lively, illustrative blue-themed slideshow template designed specifically for hygiene training. Perfect ... Read more
Modern Minimal Anti-Aging Techniques Breakthrough
Get ready to wow the fashion crowd with our latest slideshow template, perfect for anyone eager to share the newest ... Read more
Simple Health Insurance Plan
Hey health pros, got a meeting or workshop coming up? Nab our sleek slide deck tailored just for you. With ... Read more
Reducing Mental Health Stigma in Schools
This illustrated beige slideshow template is the perfect pick for students looking to break the silence on mental health in ... Read more
Illustrated Classroom Health and Safety Tips Poster Slides
Unlock the key to a safer learning environment with our Simple Illustrated, Yellow-themed presentation template, designed specifically for educators. This ... Read more
Infographic
Modern 3D 3-Item Status Process Infographic
Get your team on the same page with our sleek infographic, designed specifically for business pros. This blue and purple ... Read more
Modern Maslow’s Hierarchy of Needs Pyramid Infographics
Perfect for business pros looking to spice up their presentations, this infographic template takes the classic theory of motivation and ... Read more
Simple Quarterly Milestones Infographics
Get your team and stakeholders on the same page with our latest PowerPoint and Google Slides template, perfect for business ... Read more
Simple Illustrated Puzzle Infographics
Perfect for educators and corporate trainers, this PowerPoint and Google Slides template turns complex ideas into easy-to-understand visual stories. Whether ... Read more
Simple Team Hierarchy Infographics
Looking to showcase your company’s structure in a sleek, no-nonsense way? Our PowerPoint and Google Slides template, designed with business ... Read more
3D SWOT Analysis
Hey business wizards! Ready to give your strategy meetings a serious upgrade? Our infographic is just what you need to ... Read more
Simple Curved Roadmap With Poles Milestones Infographics
Perfect for business professionals looking to jazz up their next presentation, this multicolored, illustrated infographic template transforms boring milestones into ... Read more
Basic Milestones As Arrow Infographics
Perfect for business professionals aiming to map out their success journey, this infographic template brings a sharp 3D minimal design ... Read more
Dark Software Development Milestones
This infographic template is a game-changer for business professionals looking to showcase their project progress in a sleek, professional manner. ... Read more
Illustrated One Page Executive Summary Slide
Designed with busy business professionals in mind, this infographic template simplifies your executive summaries into one sleek, green-themed, minimal illustrated ... Read more
Clean Minimal Project Portfolio Executive Summary Slides
Perfect for business professionals looking to showcase their project achievements, this infographic template keeps things sleek and minimal. Available as ... Read more
Animated Happy Mother’s Day
Celebrate the superhero in your life with our vibrant, animated Mother’s Day slideshow template! Ideal for anyone eager to show ... Read more
Simple Animated Business Slides
Get ready to jazz up your next business meeting with our Animated Business Slides! Perfect for business pros looking to ... Read more
Animated Aesthetic Brainstorm Presentation
This presentation template is perfect for students looking to spice up their next brainstorm session. With its clean, modern look ... Read more
Animated Pixel Brainstorm Slides
Unleash your creativity with our cute, animated pixel presentation template in dominant blue, perfect for students. Ideal for brainstorming sessions, ... Read more
Animated Thesis Defense Slides
Immerse your audience in your educational presentation with our fresh, vibrant PowerPoint and Google Slides templates. Perfect for high school ... Read more
Animated 3D Video Channel Web Series Slides
Featuring an array of bright colors and compelling 3D animation, this Graffiti Style Business Pitch Deck will add a dynamic ... Read more
Minimal Sermon for a Funeral
Craft a heartfelt tribute with our minimalist animated slideshow template, perfect for anyone looking to honor a loved one’s memory. ... Read more
Animated Black History Month Report Template for Elementary Student
Get your hands on this vibrant and animated PowerPoint and Google Slides template, perfect for marketing professionals looking to spice ... Read more
Animated Worry Decision Tree Infographics
Hey business pros, ever felt tangled in a web of worries when making big decisions? Say hello to our latest ... Read more
Cute Bold Online Karaoke Social Media Strategy
Looking to hit the high notes with your next marketing campaign? This slideshow template is a marketer’s dream for anyone ... Read more
Find Free Slide Show Templates that Suit your Needs
Slide templates by topic.
- Real Estate
- Law and Justice
- Engineering
Slide templates by style
Slide templates by color.
Professional designs for your presentations
SlidesCarnival templates have all the elements you need to effectively communicate your message and impress your audience.
Suitable for PowerPoint and Google Slides
Download your presentation as a PowerPoint template or use it online as a Google Slides theme. 100% free, no registration or download limits.
- Google Slides
- Editor’s Choice
- All Templates
- Frequently Asked Questions
- Google Slides Help
- PowerPoint help
- Who makes SlidesCarnival?
Hibernate architecture
how hibernate works Read less
Recommended
More related content, what's hot, what's hot ( 20 ), viewers also liked, viewers also liked ( 20 ), similar to hibernate architecture, similar to hibernate architecture ( 20 ), recently uploaded, recently uploaded ( 20 ).
- 1. HIBERNATE
- 2. Hibernate Architecture
- 3. ‘ Full Cream’ Architecture
Got any suggestions?
We want to hear from you! Send us a message and help improve Slidesgo
Top searches
Trending searches
memorial day
12 templates
66 templates
american history
75 templates
music video
21 templates
150 templates
The best Google Slides and Powerpoint presentation templates
Here's a selection of the best free & premium google slides themes and powerpoint presentation templates from the previous month. these designs were the most popular among our users, so download them now, the best presentations from may.
It seems that you like this template!
Minimalist business slides.
Minimalism is an art style that frees the canvas and that lets the content stand out for itself. It’s a way of conveying modernism, simplicity and elegance and can be your best ally in your next presentation. With this new design from Slidesgo, your business presentations will be as professional...
Premium template
Unlock this template and gain unlimited access
Sunset Beach Agency
Do you imagine yourself surfing the waves under a beautiful sunset? Perhaps this cool image is what you'd like to project to your clients or audience. Present your agency with this editable template for Google Slides and PowerPoint! Maybe you operate in the field of travels and trips, or perhaps...
Minimalist Korean Aesthetic Pitch Deck
Templates based on a minimalist style are usually very useful in business presentations, as they make the audience focus on the content and not on the ornaments of the design. This minimalist style template that we propose here is perfect for a pitch deck to present your product or your...
Happy Pastel Summer
Soak up the sunny vibes of summer with the hottest Google Slides and PowerPoint template! This sunshine-infused masterpiece is your passport to organization and fun in the sun. Picture this: palm trees swaying, colorful cocktails clinking, and the soft sand beneath your feet as you effortlessly plan your days and...
Minimal Charm
Are you looking for a monochromatic theme that is interesting at the same time? How about using a simple and clean theme, along with black-and-white pictures, to convey business or corporate content in a professional way?
Papyrus History Lesson
History lessons tend to be boring for students, since they need to remember dates and a bunch of information. Make it entertaining by editing our free presentation template, whose backgrounds based on ancient papyrus rolls take it to the next level.
School Assignments
Design some school assignments for your students so they can learn while they are having fun. Download this cool template now and make use of its resources. It looks like a sheet of a notebook and we have added drawings of stationery. Get your pencil!
Elegant Bachelor Thesis
Present your Bachelor Thesis in style with this elegant presentation template. It's simple, minimalist design makes it perfect for any kind of academic presentation. With an array of features such as section dividers, images, infographics and more, you can easily create a professional and creative presentation that stands out from...
Futuristic Background
When you need to impress everybody and stay relevant, you must look ahead and aim to be the first. Take a peek into the future with this new template Slidesgo has just designed. It’s free and perfect for techie topics or just for giving your presentation a futuristic vibe!
Generation of '27
Generation of '27 is a group of avant-garde poets and artists who began to publish their work in the 20s of the 20th century. To help you explain this interesting part of Spanish literature to your students, we propose you this old-style brown template, with different illustrations of books, pens,...
Welcome to Middle School Class
Welcome, everyone! This is our middle school class, take a look! Our students, our teachers, our subjects, our schedules… We have written everything about it in this presentation! The cool waves of color flow amazingly with this design. Everything is super creative and colorful! Prepare for the back to school...
Summer Cottagecore Theme
When it's summer, you feel like going to the beach or the pool, eating watermelon, or maybe going to the countryside and enjoy nature. The cottagecore aesthetics make you feel comfy, and that was the purpose of this editable template. Thanks to the nice touch that watercolor always provides, you'll...
AI Tech Agency
It’s amazing how robots and computers are able to perform tasks that we thought only humans could do. If your agency is specialized in artificial intelligence, this free marketing presentation template can help you get your points across easily!
Notebook Lesson
These are the last days before the Summer break! We know that there are some pending lessons that you need to prepare for your students. As they may be thinking about their friends and their holidays, catch their attention with this cool template!
Hawaiian Lei Day
Aloha, do you know about Lei Day? It is a Hawaiian celebration that started in the late 1920's. It takes place on May 1st and lasts until the next day. On each island they hold different activities, which you can promote with the help of this fun blue and cream...
Language Arts Subject for Middle School - 6th Grade: Vocabulary Skills
Language is the way humans have to communicate with each other. Teach your middle school students interesting concepts about language. To do so, you can use this new template, so that you have a presentation ready for class! The slides have a slightly floral design due to the illustrations and...
Minimalist Aesthetic Slideshow
When you combine a minimalist design with abstract shapes and a palette composed of pastel colors, you get a successful result. This template has all of the aforementioned, plus an elegant typography and some icons of plants. It's quite unique and works for any topic, so give it a try!
Summer Woods Minitheme
Escape to the serene summer woods with this minimalist theme for your templates. Its design is simple yet alluring, with illustrations and soft colors that will mesmerize you. Enjoy a peaceful landscape of trees and animals while you speak about any kind of subject, with a subtle background pattern of...
- Page 1 of 1370
Great presentations, faster
Slidesgo for Google Slides :
The easy way to wow
Register for free and start editing online
- Add an image
- Draft and add content
- Rewrite text
- Chat with Copilot
- Create a summary
- Copilot in Word on mobile devices
- Create a new presentation
- Add a slide or image
- Summarize your presentation
- Organize your presentation
- Use your organization's branding
- Copilot in PowerPoint for mobile devices
- Draft an Outlook email message
- Summarize an email thread
- Suggested drafts in Outlook
- Email coaching
- Get started with Copilot in Excel
- Identify insights
- Highlight, sort, and filter your data
- Generate formula columns
- Summarize your OneNote notes
- Create a to-do list and tasks
- Create project plans in OneNote
Create a new presentation with Copilot in PowerPoint
Note: This feature is available to customers with a Copilot for Microsoft 365 license or Copilot Pro license.
Create a new presentation in PowerPoint.
Select Send . Copilot will draft a presentation for you!
Edit the presentation to suit your needs, ask Copilot to add a slide , or start over with a new presentation and refine your prompt to include more specifics. For example, "Create a presentation about hybrid meeting best practices that includes examples for team building.”
Create a presentation with a template
Note: This feature is only available to customers with a Copilot for Microsoft 365 (work) license. It is not currently available to customers with a Copilot Pro (home) license.
Copilot can use your existing themes and templates to create a presentation. Learn more about making your presentations look great with Copilot in PowerPoint .
Enter your prompt or select Create presentation from file to create a first draft of your presentation using your theme or template.
Edit the presentation to suit your needs, ask Copilot to add a slide , organize your presentation, or add images.
Create a presentation from a file with Copilot
Note: This feature is only available to customers with a Copilot for Microsoft 365 (work) license. It is not currently available to customers with a Copilot Pro (home) license.
With Copilot in PowerPoint, you can create a presentation from an existing Word document. Point Copilot in PowerPoint to your Word document, and it will generate slides, apply layouts, create speaker notes, and choose a theme for you.
Select the Word document you want from the picker that appears. If you don't see the document you want, start typing any part of the filename to search for it.
Note: If the file picker doesn't appear type a front slash (/) to cause it to pop up.
Best practices when creating a presentation from a Word document
Leverage word styles to help copilot understand the structure of your document.
By using Styles in Word to organize your document, Copilot will better understand your document structure and how to break it up into slides of a presentation. Structure your content under Titles and Headers when appropriate and Copilot will do its best to generate a presentation for you.
Include images that are relevant to your presentation
When creating a presentation, Copilot will try to incorporate the images in your Word document. If you have images that you would like to be brought over to your presentation, be sure to include them in your Word document.
Start with your organization’s template
If your organization uses a standard template, start with this file before creating a presentation with Copilot. Starting with a template will let Copilot know that you would like to retain the presentation’s theme and design. Copilot will use existing layouts to build a presentation for you. Learn more about Making your presentations look great with Copilot in PowerPoint .
Tip: Copilot works best with Word documents that are less than 24 MB.
Welcome to Copilot in PowerPoint
Frequently Asked Questions about Copilot in PowerPoint
Where can I get Microsoft Copilot?
Copilot Lab - Start your Copilot journey
Need more help?
Want more options.
Explore subscription benefits, browse training courses, learn how to secure your device, and more.
Microsoft 365 subscription benefits
Microsoft 365 training
Microsoft security
Accessibility center
Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.
Ask the Microsoft Community
Microsoft Tech Community
Windows Insiders
Microsoft 365 Insiders
Find solutions to common problems or get help from a support agent.
Online support
Was this information helpful?
Thank you for your feedback.
- Preferences
Spring-Hibernate tutorial - PowerPoint PPT Presentation
Spring-Hibernate tutorial
Appfuse is an open-source java ee web application framework. ... download struts and spring1. 1. download and install the following components: ... – powerpoint ppt presentation.
- Spring Live (chapter 2 posted online)
- AppFuse is an open-source Java EE web application framework. It is designed for quick and easy start up of development, while also using open-source Java technologies such as Spring framework, Hibernate and Struts. AppFuse was originally created by Matt Raible, who wanted to eliminate the "ramp up" time in building new web applications.
- AppFuse provides a project skeleton, similar to the one that's created by an IDE when one clicks through a "new web project" wizard. AppFuse 1.x uses Ant to create the project, as well as build/test/deploy it, whereas AppFuse 2.x uses Maven 2 for these tasks. IDE support was improved in 2.0 by leveraging Maven plugins to generate IDE project files. AppFuse 1.x uses XDoclet and JDK 1.4.
- Unlike other "new project" wizards, the AppFuse wizard creates a number of additional classes and files that implement features, but also serve as examples for the developer. The project is pre-configured to talk to a database, to deploy in an appserver, and to allow logging in.
- When AppFuse was first developed, it only supported Struts and Hibernate. In version 2.x, it supports Hibernate, iBATIS or JPA as persistence frameworks. For implementing the MVC model, AppFuse is compatible with JSF, Spring MVC, Struts 2 or Tapestry.
- Features integrated into AppFuse includes the following
- Authentication and Authorization
- Remember Me (saving your login information so you don't have to login every time)
- /Registration
- SSL Switching
- URL rewriting
- Skinnability
- Page Decoration
- Templated Layout
- File Upload
- This out-of-the-box functionality is one of the main features in AppFuse that separates it from the other "CRUD Generation" frameworks, including Ruby on Rails and Grails. The aforementioned framework, as well as AppFuse, allow you to create master/detail pages from database tables or existing model objects.
- This tutorial is posted at
- http//www.scribd.com/doc/7074123/Spring-Live-Matt -Raible
- A newer tutorial has been posted at
- http//www.sourcebeat.com/titles/springlive/public /Rev_12/SpringLive_SampleChapter.pdf
- code online for both tutorials
- http//svn.sourcebeat.com/svn/sourcebeat/trunk/dow nloads/
- Below are the ordered steps you will perform
- 1. Download Struts and Spring.
- 2. Create project directories and an Ant build file.
- 3. Create a unit test for the persistence layer.
- 4. Configure Hibernate and Spring.
- 5. Create Hibernate DAO implementation.
- 6. Run the unit test and verify CRUD with DAO.
- 7. Create manager and declare transactions.
- 8. Create a unit test for the Struts action.
- 9. Create an action and model (DynaActionForm) for the web layer.
- 10. Run the unit test and verify CRUD with action.
- 11. Create JavaServer Pages (JSPs) to allow CRUD through a web browser.
- 12. Verify the JSPs functionality through your browser.
- 13. Add Validation use Commons Validator.
- Download Struts and Spring1
- 1. Download and install the following components
- ?? Java Development Kit (JDK) 1.4.2 (or above)
- ?? Tomcat 5.0
- ?? Ant 1.6.1
- 2. Set up the following environment variables
- ?? JAVA_HOME
- ?? ANT_HOME
- ?? CATALINA_HOME
- 3. Add the following to your PATH environment variable
- ?? JAVA_HOME/bin
- ?? ANT_HOME/bin
- ?? CATALINA_HOME/bin
- To develop a Java-based web application, developers usually download JARs, create a directory
- structure, and create an Ant build file. For a Struts-only application, this can be simplified
- by using the struts-blank.war, which is part of the standard Struts distribution. For a web app
- using Springs MVC framework, you can use the webapp-minimal application that ships with
- Spring. Both of these are nice starting points, but neither simplifies the Struts-Spring integration
- nor takes into account unit testing. Therefore, I created Equinox, both for this book and
- to help developers get started quickly with Spring.
- Equinox is a bare-bones starter application for creating a Spring-based web application. It has
- a pre-defined directory structure, an Ant build file (for compiling, deploying and testing), and
- all the JARs you will need for a Struts, Spring and Hibernate-based web app. Much of the
- directory structure and build file in Equinox is taken from my open source AppFuse application.
- Therefore, Equinox is really just an AppFuse Light that allows rapid web app development
- with minimal setup. Because it is derived from AppFuse, you will see many references to
- it in package names, database names and other areas. This is done purposefully so you can
- migrate from an Equinox-based application to a more robust AppFuse-based application.
- In order to start MyUsers, download Equinox 1.0 from sourcebeat.com/downloads and
- extract it to an appropriate location.
- Download equinox http//www.sourcebeat.com/downlo ads
- To set up your initial directory structure and Ant build file, extract the Equinox downloadonto your hard drive. I recommend putting projects in C\Source on Windows and /devon Unix or Linux. For Windows users, now is a good time set your HOME environment variable to C\Source. The easiest way to get started with Equinox is to extract it to your preferred source location, cd into the equinox directory and run ant new -Dapp.namemyusers from the command line.
- Warning You must have the CATALINA_HOME environment variable set, or building MyUsers will not work. This is because its build.xml depends on a catalina-ant.jar file for running Tomcats Ant tasks (covered shortly). As an alternative, you can specify a Tomcat.home property in build.properties that points to your Tomcat installation.
- echo Available targets are
- echo compile --gt Compile all Java files
- echo war --gt Package as WAR file
- echo deploy --gt Deploy application as directory
- echo deploywar --gt Deploy application as a WAR file
- echo install --gt Install application in Tomcat
- echo remove --gt Remove application from Tomcat
- echo reload --gt Reload application in Tomcat
- echo start --gt Start Tomcat application
- echo stop --gt Stop Tomcat application
- echo list --gt List Tomcat applications
- echo clean --gt Deletes compiled classes and WAR
- echo new --gt Creates a new project
- Tomcat ships with a number of Ant tasks that allow you to install, remove and reload web apps using its Manager application. The easiest way to declare and use these tasks is to create a properties file that contains all the definitions. In Equinox, a tomcatTasks.properties file is in the base directory with contents
- deployorg.apache.catalina.ant.DeployTask
- undeployorg.apache.catalina.ant.UndeployTask
- removeorg.apache.catalina.ant.RemoveTask
- reloadorg.apache.catalina.ant.ReloadTask
- startorg.apache.catalina.ant.StartTask
- stoporg.apache.catalina.ant.StopTask
- listorg.apache.catalina.ant.ListTask
- lt!-- Tomcat Ant Tasks --gt
- lttaskdef file"tomcatTasks.properties"gt
- ltclasspathgt
- ltpathelement
- path"tomcat.home/server/lib/catalina-ant.jar"/ gt
- lt/classpathgt
- lt/taskdefgt
- lttarget name"install" description"Install application in Tomcat"
- depends"war"gt
- ltdeploy url"tomcat.manager.url"
- username"tomcat.manager.username"
- password"tomcat.manager.password"
- path"/webapp.name"
- war"filedist.dir/webapp.name.war"/gt
- lt/targetgt
- lttarget name"remove" description"Remove application from Tomcat"gt
- ltundeploy url"tomcat.manager.url"
- ltreload url"tomcat.manager.url"
- path"/webapp.name"/gt
- lttarget name"start" description"Start Tomcat application"gt
- ltstart url"tomcat.manager.url"
- lttarget name"stop" description"Stop Tomcat application"gt
- ltstop url"tomcat.manager.url"
- lttarget name"list" description"List Tomcat applications"gt
- ltlist url"tomcat.manager.url"
- Properties for Tomcat Server
- tomcat.manager.urlhttp//localhost8080/manager
- tomcat.manager.usernameadmin
- tomcat.manager.passwordadmin
- Edit CATALINA_HOME/conf/tomcat-users.xml to make sure this line is there.
- ltuser username"admin" password"admin" roles"manager"/gt
- C\equinox-1.0\myusersgtant list
- Buildfile build.xml
- list OK - Listed applications for virtual host localhost
- list /running0ROOT
- list /managerrunning0manager
- list /StatefulCounterEJBrunning0Stateful CounterEJB
- list /myusersrunning0myusers
- list /ejb-examples-1.1running0ejb-exampl es-1.1
- list /blazedsrunning0blazeds
- list /HelloBeanrunning0HelloBean
- list /jndiservletrunning0jndiservlet
- list /docsrunning0docs
- list /openejbrunning0openejb
- list /LookupServletrunning0LookupServlet
- list /ejb-examplesrunning0ejb-examples
- list /myexamplesrunning0myexamples
- list /hello-openejbrunning0hello-openejb
- Running ant deploy will deploy myusers.
- Warning In order for the in-memory HSQLDB to work correctly with MyUsers, start Tomcat from the same directory from which you run Ant. Type CATALINA_HOME/bin/startup.sh on Unix/Linux and CATALINA_HOME\bin\startup.bat on Windows. You can also change the database settings to use an absolute path.
- 1. Create a UserDAOTest.java class in the test/org/appfuse/dao directory. This class should
- extend BaseDAOTestCase, which already exists in this package. This parent class
- initializes Springs ApplicationContext from the web/WEB-INF/applicationContext.xml file.
- Listing 2.6 is the code you will need to begin writing your UserDAOTest.java
- Listing 2.6
- Note Automatically importing necessary classes is a nice feature of modern IDEs like
- Eclipse and IDEA. Equinox contains the project necessary for both of these IDEs.
- This class wont compile yet because you havent created your UserDAO interface. Before you
- do that, write a couple of tests to verify CRUD works on the User object.
- 2. Add the testSave and testAddAndRemove methods to the UserDAOTest class, as
- shown in Listing 2.7
- Listing 2.7
- package org.appfuse.dao
- // use your IDE to handle imports
- public class UserDAOTest extends BaseDAOTestCase
- private User user null
- private UserDAO dao null
- protected void setUp() throws Exception
- super.setUp()
- Add the testSave and testAddAndRemove methods to the UserDAOTest class, as
- dao (UserDAO) ctx.getBean("userDAO")
- protected void tearDown() throws Exception
- super.tearDown()
- public void testSaveUser() throws Exception
- user new User()
- user.setFirstName("Rod")
- user.setLastName("Johnson")dao.saveUser(user)
- assertNotNull("primary key assigned", user.getId())
- From these test methods, you can see that you need to create a UserDAO with the following
- saveUser(User)
- removeUser(Long)
- getUser(Long)
- getUsers() (to return all the users in the database)
- 3. Create a UserDAO.java file in the src/org/appfuse/dao directory and populate it with the
- code in Listing 2.8
- public interface UserDAO extends DAO
- public List getUsers()
- public User getUser(Long userId)
- public void saveUser(User user)
- public void removeUser(Long userId)
- Finally, in order for the UserDAOTest and UserDAO to compile, create a User object to persist.
- Create a User.java class in the src/org/appfuse/model directory and add id, firstName
- and lastName as member variables, as shown
- package org.appfuse.model
- public class User extends BaseObject
- private Long id
- private String firstName
- private String lastName
- Generate your getters and setters using your favorite IDE
- Right-click -gt Source -gt Generate Getters and Setters
- Notice that youre extending a BaseObject class which is already defined. It has methods toString(), equals() and hashCode(). The latter two are required by Hibernate.
- In the src/org/appfuse/model directory, create a file named User.hbm.xml
- lt?xml version"1.0" encoding"UTF-8"?gt
- lt!DOCTYPE hibernate-mapping PUBLIC
- "-//Hibernate/Hibernate Mapping DTD 2.0//EN"
- "http//hibernate.sourceforge.net/hibernate-mappin g-2.0.dtd"gt
- lthibernate-mappinggt
- ltclass name"org.appfuse.model.User" table"app_user"gt
- ltid name"id" column"id" unsaved-value"0"gt
- ltgenerator class"increment" /gt
- ltproperty name"firstName" column"first_name"
- not-null"true"/gt
- ltproperty name"lastName" column"last_name" not-null"true"/gt
- lt/hibernate-mappinggt
- Add this mapping to Springs applicationContext.x ml file in the web/WEB-INF directory. Open this file and look for ltproperty name"mappingResources "gt and change it to
- ltproperty name"mappingResources"gt
- ltvaluegtorg/appfuse/model/User.hbm.xmllt/valuegt
- lt/propertygt
- In the applicationContext.xml file, you can see how the database is set up and Hibernate is configured to work with Spring. Equinox is designed to work with an HSQL database named db/appfuse. It will be created in your projects db directory. Details of this configuration will be covered in the How Spring is configured in Equinox section.
- INFO - SchemaExport.execute(98) Running hbm2ddl schema export
- INFO - SchemaExport.execute(117) exporting generated schema to database
- INFO - ConnectionProviderFactory.newConnectionProv ider(53) Initializing
- connection provider org.springframework.orm.hiber nate
- .LocalDataSourceConnectionProvider
- INFO - DriverManagerDataSource.getConnectionFromDr iverManager(140)
- Creating new JDBC connection to jdbchsqldbdb/appfuse
- INFO - SchemaExport.execute(160) schema export complete
- It is very easy to configure any J2EE-based web application to use Spring. At the very least, you can simply add Springs ContextLoaderListener to your web.xml file
- ltlistenergt
- ltlistener-classgt
- org.springframework.web.context.ContextLoaderListe ner
- lt/listener-classgt
- lt/listenergt
- This is a ServletContextListener that initializes when your web app starts up. By default, it looks for Springs configuration file at WEB-INF/applicationContext.xml. You can change this default value by specifying a ltcontext-paramgt element named contextConfig-
- Look at the full contents of your applicationContext.xml file
- ltcontext-paramgt
- ltparam-namegtcontextConfigLocationlt/param-namegt
- ltparam-valuegt/WEB-INF/sampleContext.xmllt/param-val uegt
- lt/context-paramgt
- lt!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
- "http//www.springframework.org/dtd/spring-beans.d td"gt
- ltbean id"dataSource"
- class"org.springframework.jdbc.datasource.DriverM anagerDataSource"gt
- ltproperty name"driverClassName"gt
- ltvaluegtorg.hsqldb.jdbcDriverlt/valuegt
- ltproperty name"url"gt
- ltvaluegtjdbchsqldbdb/appfuselt/valuegt
- ltproperty name"username"gtltvaluegtsalt/valuegtlt/prope rtygt
- lt!-- Make sure ltvaluegt tags are on same line - if they're not,
- ltprop key"hibernate.dialect"gt
- net.sf.hibernate.dialect.HSQLDialect
- ltprop key"hibernate.hbm2ddl.auto"gtcreatelt/propgt
- lt!-- Transaction manager for a single Hibernate SessionFactory --gt
- ltbean id"transactionManager"
- class"org.springframework.orm.hibernate.Hibernate TransactionManager"gt
- ltproperty name"sessionFactory"gt
- ltref local"sessionFactory"/gt
- The first bean (dataSource) represents an HSQL database, and the second bean (session-Factory) has a dependency on that bean. Spring just calls setDataSource (DataSource) on the LocalSessionFactoryBean to make this work. If you wanted to use a Java Naming and Directory Interface (JNDI) DataSource instead, you could easily change this beans definition to something similar to
- class"org.springframework.jndi.JndiObjectFactoryB ean"gt
- ltproperty name"jndiName"gt
- ltvaluegtjavacomp/env/jdbc/appfuselt/valuegt
- Also note the hibernate.hbm2ddl.auto property in the sessionFactory definition. This property creates the database tables automatically when the application starts. Other possible values are update and create-drop.The last bean configured is the transactionManager (and nothing is stopping you from using a Java Transaction API JTA transaction manager), which is necessary to perform distributed transactions across two databases. If you want to use a JTA transaction manager, simply change this beans class attribute to org.springframework.transaction.jta.J ta-TransactionManager. Now you can implement the UserDAO with Hibernate.
- package org.appfuse.dao.hibernate
- // organize imports using your IDE
- public class UserDAOHibernate extends HibernateDaoSupport implements
- private Log log LogFactory.getLog(UserDAOHiberna te.class)
- return getHibernateTemplate().find("from User")
- public User getUser(Long id)
- return (User) getHibernateTemplate().get(User.clas s, id)
- getHibernateTemplate().saveOrUpdate(user)
- if (log.isDebugEnabled())
- log.debug("userId set to " user.getId())
- public void removeUser(Long id)
- Object user getHibernateTemplate().load(User.cla ss, id)
- Springs HibernateDaoSupport class is a convenient super class for Hibernate DAOs. It has
- handy methods you can call to get a Hibernate Session, or a SessionFactory. The most convenient
- method is getHibernateTemplate(), which returns a HibernateTemplate. This
- template wraps Hibernate checked exceptions with runtime exceptions, allowing your DAO
- interfaces to be Hibernate exception-free.
- Nothing is in your application to bind UserDAO to UserDAOHibernate, so you must create
- that relationship.
- 2. For Spring to recognize the relationship, add the lines in Listing 2.18 to the web/WEBINF/
- applicationContext.xml file.
- ltbean id"userDAO" class"org.appfuse.dao.hibernat e.UserDAOHibernate"gt
PowerShow.com is a leading presentation sharing website. It has millions of presentations already uploaded and available with 1,000s more being uploaded by its users every day. Whatever your area of interest, here you’ll be able to find and view presentations you’ll love and possibly download. And, best of all, it is completely free and easy to use.
You might even have a presentation you’d like to share with others. If so, just upload it to PowerShow.com. We’ll convert it to an HTML5 slideshow that includes all the media types you’ve already added: audio, video, music, pictures, animations and transition effects. Then you can share it with your target audience as well as PowerShow.com’s millions of monthly visitors. And, again, it’s all free.
About the Developers
PowerShow.com is brought to you by CrystalGraphics , the award-winning developer and market-leading publisher of rich-media enhancement products for presentations. Our product offerings include millions of PowerPoint templates, diagrams, animated 3D characters and more.
How To Get Free Access To Microsoft PowerPoint
E very time you need to present an overview of a plan or a report to a whole room of people, chances are you turn to Microsoft PowerPoint. And who doesn't? It's popular for its wide array of features that make creating effective presentations a walk in the park. PowerPoint comes with a host of keyboard shortcuts for easy navigation, subtitles and video recordings for your audience's benefit, and a variety of transitions, animations, and designs for better engagement.
But with these nifty features comes a hefty price tag. At the moment, the personal plan — which includes other Office apps — is at $69.99 a year. This might be the most budget-friendly option, especially if you plan to use the other Microsoft Office apps, too. Unfortunately, you can't buy PowerPoint alone, but there are a few workarounds you can use to get access to PowerPoint at no cost to you at all.
Read more: The 20 Best Mac Apps That Will Improve Your Apple Experience
Method #1: Sign Up For A Free Microsoft Account On The Office Website
Microsoft offers a web-based version of PowerPoint completely free of charge to all users. Here's how you can access it:
- Visit the Microsoft 365 page .
- If you already have a free account with Microsoft, click Sign in. Otherwise, press "Sign up for the free version of Microsoft 365" to create a new account at no cost.
- On the Office home page, select PowerPoint from the side panel on the left.
- Click on "Blank presentation" to create your presentation from scratch, or pick your preferred free PowerPoint template from the options at the top (there's also a host of editable templates you can find on the Microsoft 365 Create site ).
- Create your presentation as normal. Your edits will be saved automatically to your Microsoft OneDrive as long as you're connected to the internet.
It's important to keep in mind, though, that while you're free to use this web version of PowerPoint to create your slides and edit templates, there are certain features it doesn't have that you can find on the paid version. For instance, you can access only a handful of font styles and stock elements like images, videos, icons, and stickers. Designer is also available for use on up to three presentations per month only (it's unlimited for premium subscribers). When presenting, you won't find the Present Live and Always Use Subtitles options present in the paid plans. The biggest caveat of the free version is that it won't get any newly released features, unlike its premium counterparts.
Method #2: Install Microsoft 365 (Office) To Your Windows
Don't fancy working on your presentation in a browser? If you have a Windows computer with the Office 365 apps pre-installed or downloaded from a previous Office 365 trial, you can use the Microsoft 365 (Office) app instead. Unlike the individual Microsoft apps that you need to buy from the Microsoft Store, this one is free to download and use. Here's how to get free PowerPoint on the Microsoft 365 (Office) app:
- Search for Microsoft 365 (Office) on the Microsoft Store app.
- Install and open it.
- Sign in with your Microsoft account. Alternatively, press "Create free account" if you don't have one yet.
- Click on Create on the left side panel.
- Select Presentation.
- In the PowerPoint window that opens, log in using your account.
- Press Accept on the "Free 5-day pass" section. This lets you use PowerPoint (and Word and Excel) for five days — free of charge and without having to input any payment information.
- Create your presentation as usual. As you're using the desktop version, you can access the full features of PowerPoint, including the ability to present in Teams, export the presentation as a video file, translate the slides' content to a different language, and even work offline.
The only downside of this method is the time limit. Once the five days are up, you can no longer open the PowerPoint desktop app. However, all your files will still be accessible to you. If you saved them to OneDrive, you can continue editing them on the web app. If you saved them to your computer, you can upload them to OneDrive and edit them from there.
Method #3: Download The Microsoft PowerPoint App On Your Android Or iOS Device
If you're always on the move and need the flexibility of creating and editing presentations on your Android or iOS device, you'll be glad to know that PowerPoint is free and available for offline use on your mobile phones. But — of course, there's a but — you can only access the free version if your device is under 10.1 inches. Anything bigger than that requires a premium subscription. If your phone fits the bill, then follow these steps to get free PowerPoint on your device:
- Install Microsoft PowerPoint from the App Store or Google Play Store .
- Log in using your existing Microsoft email or enter a new email address to create one if you don't already have an account.
- On the "Get Microsoft 365 Personal Plan" screen, press Skip For Now.
- If you're offered a free trial, select Try later (or enjoy the free 30-day trial if you're interested).
- To make a new presentation, tap the plus sign in the upper right corner.
- Change the "Create in" option from OneDrive - Personal to a folder on your device. This allows you to save the presentation to your local storage and make offline edits.
- Press "Set as default" to set your local folder as the default file storage location.
- Choose your template from the selection or use a blank presentation.
- Edit your presentation as needed.
Do note that PowerPoint mobile comes with some restrictions. There's no option to insert stock elements, change the slide size to a custom size, use the Designer feature, or display the presentation in Immersive Reader mode. However, you can use font styles considered premium on the web app.
Method #4: Use Your School Email Address
Office 365 Education is free for students and teachers, provided they have an email address from an eligible school. To check for your eligibility, here's what you need to do:
- Go to the Office 365 Education page .
- Type in your school email address in the empty text field.
- Press "Get Started."
- On the next screen, verify your eligibility. If you're eligible, you'll be asked to select whether you're a student or a teacher. If your school isn't recognized, however, you'll get a message telling you so.
- For those who are eligible, proceed with creating your Office 365 Education account. Make sure your school email can receive external mail, as Microsoft will send you a verification code for your account.
- Once you're done filling out the form, press "Start." This will open your Office 365 account page.
You can then start making your PowerPoint presentation using the web app. If your school's plan supports it, you can also install the Office 365 apps to your computer by clicking the "Install Office" button on your Office 365 account page and running the downloaded installation file. What sets the Office 365 Education account apart from the regular free account is that you have unlimited personal cloud storage and access to other Office apps like Word, Excel, and Outlook.
Read the original article on SlashGear .
IMAGES
VIDEO
COMMENTS
Hibernate DasanWeerarathne. Introduction • Hibernate allows to persist the java objects using its' Object/Relational Mapping (ORM) framework. • It is automates ORM and considerably reduces the number of lines of code needed to persist the object in the database. • Hibernate can be used in Java Swing applications, Java Servlet-based ...
Hibernate ppt - Download as a PDF or view online for free. ... Report. Share. Report. Share. 1 of 39. Download now. Recommended. Hibernate Presentation. Hibernate Presentation ... VirtualNuggets Offering All Java Technologies Corporate Online Training Services .Here VirtualNuggets Publishing Free Hibernate Tutorials For Java Learners .Topics ...
Hibernate - Download as a PDF or view online for free. Presentation provides introduction and detailed explanation of the Java 8 Lambda and Streams.
In this Java Hibernate Training session, you will learn Hibernate part -2. Topics covered in this session are: • Generator Class in Hibernate • SQL Dialects • Collection Mapping • One-to-one Mapping • Cascade Types • Many to one / One to many • Hibernate Lazy Loading • Transaction Management • HQL - Hibernate Query Language • HCQL - Hibernate Criteria Query Language ...
Hibernate is an object-relational mapping library for the Java language, providing a framework for mapping an object-oriented domain model to a traditional relational database. Hibernate solves object-relational impedance mismatch problems by replacing direct persistence-related database accesses with high-level object handling functions. - A free PowerPoint PPT presentation (displayed as an ...
Hibernate Presentation - Free download as Powerpoint Presentation (.ppt), PDF File (.pdf), Text File (.txt) or view presentation slides online. Hibernate
Hibernate Ppt - Free download as PDF File (.pdf), Text File (.txt) or view presentation slides online. Test-Driven Development with Spring and Hibernate Matt Raible appfuse.dev.java.net Introductions Your experience with webapps? your experience with open source? What do you want to get from this tutorial?
Chapter 02- Hibernate Architecture - Configuration - Mapping - Free download as Powerpoint Presentation (.ppt / .pptx), PDF File (.pdf), Text File (.txt) or view presentation slides online.
View Hibernate PPTs online, safely and virus-free! Many are downloadable. Learn new and interesting things. ... PowerPoint PPT presentation | free to download . Hibernate online training from India ... PowerPoint Presentation Author: Jefferson County Schools Last modified by: Bharti.patne Created Date: 11/23/1999 2:46:00 PM Document ...
26 likes • 20,678 views. G. guest11106b. Technology. 1 of 27. Download now. Download to read offline. Hibernate Presentation - Download as a PDF or view online for free.
Google Slides: Click the link to make a copy that saves to your Google Drive. PowerPoint: Click the link to open the presentation in view mode, then download and save the file. Once you have downloaded the PPT, you will be able to enable editing. Please note, PowerPoint and Google Slides have different functionalities, so the resources may have ...
World's Best PowerPoint Templates - CrystalGraphics offers more PowerPoint templates than anyone else in the world, with over 4 million to choose from. Winner of the Standing Ovation Award for "Best PowerPoint Templates" from Presentations Magazine. They'll give your presentations a professional, memorable appearance - the kind of sophisticated look that today's audiences expect.
Our beautifully illustrated Hibernation PowerPoint provides the perfect introduction to this fascinating topic. Learn all about the whys and hows of hibernation and meet the animals that hibernate in photo form with this lovely presentation.This resource includes: a definition and explanation of what hibernation means and how it benefits the animals that hibernate;why animals hibernate ...
Hibernate Presentation - Free download as Powerpoint Presentation (.ppt), PDF File (.pdf), Text File (.txt) or view presentation slides online. Hibernate is a popular open source object / Relational Mapping (ORM) tool transparent persistence for POJOs (Plain Old Java Objects) Core of JBoss CMP 2. Impl. Features generates the SQL calls and relieves the developer from manual result set handling ...
Discover the best Google Slides themes and PowerPoint templates you can use in your presentations - 100% Free for any use. Create . Explore ... Download as a PowerPoint file ... Download the Interactive and Animated Lesson for Pre-K presentation for PowerPoint or Google Slides and create big learning experiences for the littlest students ...
Free PowerPoint and Google Slides Templates for your Presentations. Free for any use, no registration or download limits. Featured Slide Themes. Editor's Choice Popular Ready-to-teach Lessons ... Download your presentation as a PowerPoint template or use it online as a Google Slides theme. 100% free, no registration or download limits. Content ...
Technology Education. 1 of 10. Download now. Hibernate architecture - Download as a PDF or view online for free.
Download Share. Share. About This Presentation. Title: Hibernate. Description: ... The PowerPoint PPT presentation: "Hibernate" is the property of its rightful owner. Do you have PowerPoint slides to share? If so, share your PPT presentation slides online with PowerShow.com. It's FREE! ...
Download the best free and premium presentation templates and themes for Google Slides and PowerPoint. All of them have amazing backgrounds and designs! ... Here's a selection of the best free & premium Google Slides themes and PowerPoint presentation templates from the previous month. These designs were the most popular among our users, so ...
Apple Keynote app on an iPad© Apple. WPS Presentation app on different devices© WPS Office. Google Slides app on the web© Adnan Ahmed/SlashGear. Person creating infographs on a laptop ...
Hibernate IntroPPT - Free download as Powerpoint Presentation (.ppt), PDF File (.pdf), Text File (.txt) or view presentation slides online. Hibernate is a Professional Open Source project and a critical component of the JBoss Enterprise Middleware System (jEMS) suite of products. It was published for the first time 5 years ago. Hibernate goal is to relieve the developer from 95 percent of ...
Select the Copilot button in the Home tab of the ribbon. Enter your prompt or select Create presentation from file to create a first draft of your presentation using your theme or template. Copilot will replace your current presentation with a new one. If needed, save a copy first and rerun the steps above. If you already have a copy, confirm ...
Spring-Hibernate tutorial. Description: AppFuse is an open-source Java EE web application framework. ... Download Struts and Spring1. 1. Download and install the following components: ... - PowerPoint PPT presentation. Number of Views: 2682. Avg rating:3.0/5.0.
Here's how to get free PowerPoint on the Microsoft 365 (Office) app: Search for Microsoft 365 (Office) on the Microsoft Store app. Install and open it. Sign in with your Microsoft account ...