Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
40Activity
0 of .
Results for:
No results containing your search query
P. 1
Tutorial Hibernate

Tutorial Hibernate

Ratings: (0)|Views: 1,024|Likes:
Published by managanesh
Tutorial Hibernate
Tutorial Hibernate

More info:

Published by: managanesh on Dec 24, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

09/18/2010

pdf

text

original

 
Tutorial de Hibernate
Tutorial de Hibernate
Elaboró: Ismael Nuñez
 
Tutorial de Hibernate
Índice de contenido
Introducción...............................................................................................................................................4Herramientas necesarias.............................................................................................................................6Hibernate...............................................................................................................................................6HSQL.....................................................................................................................................................6Eclipse...................................................................................................................................................6Derby.....................................................................................................................................................6Aplicación sencilla usando Hibernate........................................................................................................7Crear el proyecto Java con Eclipse........................................................................................................7Configuración del Build Path................................................................................................................9Creación de las clases Java..................................................................................................................12Clase del objeto de dominio...........................................................................................................12Clase de Manejo del objeto de dominio.........................................................................................14Configuración de Hibernate................................................................................................................18El archivo hibernate.cfg.xml...........................................................................................................18El archivo Libro.hbm.xml...............................................................................................................19Creación del archivo log2j.properties.............................................................................................20Automatización del proceso de construcción con ANT......................................................................20Correr la aplicación.............................................................................................................................22Aplicación sencilla utilizando Hibernate y Derby...................................................................................26Configuración de el archivo hibernate.cfg.xml...................................................................................27Corriendo la aplicación.......................................................................................................................28Creando aplicaciones con Hibernate........................................................................................................32Anatomía de los archivo de mapeo.....................................................................................................33Tipos de datos soportados por Hibernate........................................................................................33Atributos del elemento <hibernate-mapping>................................................................................33Atributos del elemento <class>......................................................................................................34Atributos del elemento <id>...........................................................................................................36Atributos del elemento <generator>..........................................................................................36Atributos del elemento <property>.................................................................................................37Relaciones entre tablas........................................................................................................................38Atributos del elemento <one-to-one>.............................................................................................39Atributos del elemento <one-to-many>..........................................................................................40Atributos del elemento <many-to-many>.......................................................................................42Atributos comunes de los elementos de colección.........................................................................42Atributos del elemento <set>.....................................................................................................43Atributos del elemento <list>.....................................................................................................45Atributos del elemento <idbag>.................................................................................................45Atributos del elemento <map>...................................................................................................45Atributos del elemento <bag>....................................................................................................46Relaciones bidireccionales..................................................................................................................46Relaciones del tipo <one-to-many>................................................................................................46Relaciones del tipo <many-to-many>.............................................................................................47Mapeo de clases y sus relaciones........................................................................................................49
Elaboró: Ismael Nuñez
 
Tutorial de Hibernate
Mapeo de la relación de composición............................................................................................49Mapeo de la relación de herencia...................................................................................................50Referencias...............................................................................................................................................55En ingles..............................................................................................................................................55En español...........................................................................................................................................55
Elaboró: Ismael Nuñez

Activity (40)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Carlos Cespedes liked this
Anda Plotuna liked this
juanDartes liked this
almaryluna liked this
scribdmike__ liked this
Marvin Sancé liked this
Jesyu Laruz liked this
Dona Sona liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->