-
10
pages
-
English
-
Documents
Description
First Hibernate exampleThis tuto rial shows a simple e xample using Hibernate. We will create a simple Java application,showing how Hib ernate works.GeneralsAuthor: Sebastian Hen nebruederhttp://www.laliluna.d e/tu torials. html T utorials f or S truts, EJB, xdoclet, JS F, JSP andeclipse.Date: thFebruary, 2 5 200 5PDF Version of the tutorial:http:/ /w ww.laliluna.de/asset s/tu torials/ first-hibernate- example- tutorial- en.pdfSourcesThe sources do es not inclu de t he libraries. Do wnload the li braries from hibernate.or g andyour database driver and add t hem to the pr oject as explai ned bel ow! The example mustbe con figured to work with your database se ttings! Read th e tutorial.http:/ /w ww.laliluna.de/asset s/tu torials/ first-hibernate- example- tutorial. zipShort introductionHibernate is a solution f or object relat ional map ping an d a p ersistence managementsolution or per sistent layer. T his is probably not understandable f or anybod y learningHibernate.What you can imag ine is prob ably that y ou have your application with some f unctions(b usiness logic) an d you w ant to save dat a in a database. When you use Ja va all thebusiness logic normally w orks w ith objects of di fferent class types. Your da tabase tabl esare not at a ll o bjects. Hibernate p rovides a soluti on to map d atabase tab les to a class. It copi es t he dat abasedata to a class. In the other directio n it supp orts to sa ve o bjects t o the data base. In th ...
-
Publié par
-
Langue
English