Introduction aux ORM

Transcription

Introduction aux ORM
Cedric Dumoulin
Cours
 Le cours de Laurent Guerin
 Page du site

http://www.laurent-guerin.fr/jpa
 Lien direct Cours-JPA-v1.2.pdf

http://www.laurent-guerin.fr/jpa/Cours-JPAv1.2.pdf?attredirects=0&d=1
 Licences

Creative Commons (CC) : BY-NC-SA"
( cf http://creativecommons.org/licenses/ )
JPA intro
 Cours-JPA-v1.2.pdf
 Slides s1 à s32 (p1 à p160)
Atelier 1
 JPA 2.0 with EclipseLink - Tutorial
 Lars Vogel
 http://www.vogella.com/articles/JavaPersistenceAPI/art
icle.html
 Section 1 a 4 (inclus)
  Utiliser une classe Book {nom, resume} au lieu de la
classe Todo
JPA Associations
 Cours-JPA-v1.2.pdf
 Slides s32 à s38 (p17 à p19)
Atelier 2
 JPA 2.0 with EclipseLink - Tutorial
 Lars Vogel
 http://www.vogella.com/articles/JavaPersistenceAPI/art
icle.html
 Section 6 (inclus)
 La section 5 indique que l’on peut generer les
getters/setters. Cela peut aussi être fait à partir de
Eclipse
Atelier 3
 Construire les entités pour une bibliothèque de livres
 tp1-3 jpa-Library.pdf
 Partie domaine uniquement


Avec JPA
Tests avec JUnit
Bibliographie
 The Java EE 7 Tutorial
 http://docs.oracle.com/javaee/7/tutorial/doc/
 Java - JPA
 http://www.laurent-guerin.fr/jpa
 45. JPA (Java Persistence API)
 JM Doudoux
 http://jmdoudoux.developpez.com/cours/developpons/java/chapjpa.php
 La persistance des données avec JPA
 http://fr.openclassrooms.com/informatique/cours/creez-votreapplication-web-avec-java-ee/la-persistance-des-donnees-avec-jpa
 Mapping Objects to Relational Databases: O/R Mapping In Detail
 http://www.agiledata.org/essays/mappingObjects.html
 The Object-Relational Impedance Mismatch
 http://www.agiledata.org/essays/impedanceMismatch.html
Tutoriels
 JPA 2.0 with EclipseLink - Tutorial
 Lars Vogel
 http://www.vogella.com/articles/JavaPersistenceAPI/art
icle.html
 Premiers pas avec Eclipse et JPA
 http://blog.paumard.org/tutoriaux/eclipse-jpa/