{"id":67364,"date":"2021-07-20T04:10:04","date_gmt":"2021-07-20T08:10:04","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/what-is-hibernate-java-short-notes\/"},"modified":"2021-07-20T04:10:04","modified_gmt":"2021-07-20T08:10:04","slug":"what-is-hibernate-java-short-notes","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=67364","title":{"rendered":"What is Hibernate? #Java Short Notes"},"content":{"rendered":"<p>Why Hibernate?<br \/>\nA database is an integral part of many different types of applications. Standalone single-person applications to multi-user distributed business and enterprise applications make extensive use of databases. Many high end technology applications in industries including telecommunications, and surveillance systems make extensive use of databases. However, in recent years, the use of database has become complex in nature as the applications and their needs are complex themselves. In terms of database integration with persistence,J2EE EJB standard is the most successful strategy [Ref:Book:Pro Hibernate 3 by Apress]. Though, you can still use the SQL based access.<\/p>\n<p>Hibernate is just another great way to access the backend databases. Hibernate complements many of the limitations of the EJB standard. EJB3 has followed Hibernate to provide persistence in EJB3.Hibernate provides Object Relational Mapping with persistence. Using Hibernate, you can access databases without making use of SQLs from your applications.The query can be done in the object level not in the database\/sql level. The benefits are application programmers don&#8217;t need to be bothered with SQL and backend stuffs, Hibernate provides persistence as well. However, it should not be regarded as the best solution for all types of database applications. For many, applications using the SQL based strategies are more appropriate. Using EJBs is also an option.<\/p>\n<p>Latest version of Hibernate is 3, it is a major change from version 2. You can download it from http:\/\/www.hibernate.org. Check left menu for the download option. Download the production version of the latest release. Hibernate works with most databases as the backend. Usually, Hibernate sits on top of the driver for the corresponding DBMS and provides the abstraction to the application programmers.<\/p>\n<p>Hibernate Development<br \/>\nSupports both .Net and J2EE platform<\/p>\n<p>Tools required<\/p>\n<p>JDK<br \/>\nHibernate<br \/>\nDatabase like HSQL, MySQl, SQL Server<br \/>\nAnt tool<\/p>\n<p>Download Hibernate:<br \/>\nhttp:\/\/hibernate.org\/ from left menu download<\/p>\n<p>Steps in developing Hibernate 3 applications<br \/>\n1. Create the configuration files to provide database connection related parameters<br \/>\n2. Create the Java class files [the POJO for persistence]<br \/>\n3. Create a mapping file between a table and the class4. From the mapping files, you can create SQL statements to create your database schema in the backend. Hibernate provides the tool SchemaExport for the purpose<br \/>\n5. Write the application From: http:\/\/sitestree.com\/?p=5017<br \/> Categories:Java Short Notes<br \/>Tags:<br \/> Post Data:2007-05-06 15:54:46<\/p>\n<p>\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\t(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"> http:\/\/Training.SitesTree.com<\/a><br \/>\n\t\tIn Bengali: <a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\">http:\/\/Bangla.SaLearningSchool.com<\/a><br \/>\n\t\t<a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\">http:\/\/SitesTree.com<\/a><br \/>\n\t\t8112223 Canada Inc.\/JustEtc: <a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\">http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) <\/a><br \/>\n\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com'> https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\tMedium: <a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"> https:\/\/medium.com\/@SayedAhmedCanada <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Why Hibernate? A database is an integral part of many different types of applications. Standalone single-person applications to multi-user distributed business and enterprise applications make extensive use of databases. Many high end technology applications in industries including telecommunications, and surveillance systems make extensive use of databases. However, in recent years, the use of database has &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=67364\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917],"tags":[],"class_list":["post-67364","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":69111,"url":"http:\/\/bangla.sitestree.com\/?p=69111","url_meta":{"origin":67364,"position":0},"title":"What is Hibernate? What does it mean to J2EE developers #48","author":"Author-Check- Article-or-Video","date":"August 12, 2021","format":false,"excerpt":"What is Hibernate? What does it mean to J2EE developersHibernate is an open source free Java package that provides easy and efficient ways to deal with relational databases. Hibernate gives the abstraction that your databases contain just objects rather than tables. You manipulate objects to insert data or to get\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":65975,"url":"http:\/\/bangla.sitestree.com\/?p=65975","url_meta":{"origin":67364,"position":1},"title":"Introduction to Spring #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 18, 2021","format":false,"excerpt":"Open-sourced on February, 2003 Layered J2EE application framework Inversion of Control (IoC): A Data Access Object (DAO) depends on a DataSource. Allows: code to interfaces Spring has classes to support Hibernate, Struts, and other frameworks According to many Java developers [ref:internet], J2EE patterns are sometimes cumbersome. Spring uses patterns but\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":65920,"url":"http:\/\/bangla.sitestree.com\/?p=65920","url_meta":{"origin":67364,"position":2},"title":"What is Spring Framework? What does it mean to J2EE developers #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 17, 2021","format":false,"excerpt":"What is Spring Framework? What does it mean to J2EE developers? Spring is a light-weight framework, very often referred as an alternative\/competitor to EJB, for the development of enterprise-type applications. Spring provides many features such as declarative transaction management, access to remote logic using RMI or web services, mailing facilities\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":67414,"url":"http:\/\/bangla.sitestree.com\/?p=67414","url_meta":{"origin":67364,"position":3},"title":"Hibernate Architecture: Some Information #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 21, 2021","format":false,"excerpt":"Lite Architecture: Applications provide their own JDBC connections and also manage their own transactions Full Cream Architecture: Hibernate takes care of the JDBC connections and transaction Management. The applications are relieved of these responsibilities An instance of a persistent class can be in one of three states such as transient,\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":67408,"url":"http:\/\/bangla.sitestree.com\/?p=67408","url_meta":{"origin":67364,"position":4},"title":"Hibernate: Key Poins: What is Hibernate: How to develop #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 21, 2021","format":false,"excerpt":"Open source object\/relational mapping tool for Java Provides persistent classes and persistent logic In addition to mapping, provides data query and retrieval facilities Steps: Create a POJO, create an XML mapping file for object to table columns, use Hibernate APIs to load\/store the persistent objects hibernate.cfg.xml file keeps properties such\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":67450,"url":"http:\/\/bangla.sitestree.com\/?p=67450","url_meta":{"origin":67364,"position":5},"title":"Hibernate: Basic Concepts #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 22, 2021","format":false,"excerpt":"Hibernate Object Relational Mapping Software ORM qualities: Pure relational, Light object mapping, Medium object mapping, Full object mapping ORM Metadata: ORM metadata provides support for mapping between classes and tables, properties and columns, associations and foreign keys, Java types and SQL types. Full Object Mapping: Supports advanced object modeling: composition,\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/67364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=67364"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/67364\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=67364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=67364"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=67364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}