PDF Archive

Easily share your PDF documents with your contacts, on the Web and Social Networks.

Share a file Manage my documents Convert Recover PDF Search Help Contact



JavaEE Avancé 2 JPA .pdf



Original filename: JavaEE Avancé - 2 - JPA.pdf
Title: Diapositive 1
Author: DELORD Matthieu

This PDF 1.5 document has been generated by Microsoft® PowerPoint® 2013, and has been sent on pdf-archive.com on 29/09/2016 at 12:22, from IP address 185.42.x.x. The current document download page has been viewed 266 times.
File size: 706 KB (25 pages).
Privacy: public file




Download original PDF file









Document preview


JavaEE Avancé

Module 2 : JPA

www.eni-ecole.fr

n° 40

JPA ?
 Java Persistence API
 Standardisation ORM
 JSR 317
 Construit à partir des standards de facto
 Hibernate
 TopLink/Eclipse Link
 JDO

Interface uniquement

www.eni-ecole.fr

n° 41

Cycle de vie

removed

persist

remove
clear
close
detach

new
persist
new

merge

managed

detached
merge

refresh

www.eni-ecole.fr

find

n° 42

Mise en place

www.eni-ecole.fr

n° 43

Mise en place
1
2
3
4
5
6

• Installer l’environnement de développement

• Créer le projet
• Intégrer une implémentation de JPA
• Intégrer le pilote JDBC
• Configurer JPA
• Décrire la correspondance modèle objet <--> modèle relationnel

www.eni-ecole.fr

n° 44

Mise en place (2) - Projet

www.eni-ecole.fr

n° 45

Mise en place (3) - Hibernate

www.eni-ecole.fr

n° 46

Mise en place (4) - Pilote JDBC

WEB-INF
lib

Copier/coller

sqljdbc.jar

www.eni-ecole.fr

n° 47

Mise en place (5) - Configuration
 Fichier persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0"
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/
ns/persistence http://java.sun.com/
xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="..." transaction-type="...">
<provider>...</provider>

 Packagé dans META-INF

<properties>
...
</properties>
</persistence-unit>
</persistence>

www.eni-ecole.fr

n° 48


Related documents


PDF Document javaee avance 2 jpa
PDF Document javaee59 05
PDF Document sitemap
PDF Document       fra simulator rn grid
PDF Document c9510 418 exam questions updated demo 2018
PDF Document c9510 418 exam dumps try latest c9510 418 demo questions


Related keywords