JavaEE Avancé 2 JPA .pdf

File information


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 10:22, from IP address 185.42.x.x. The current document download page has been viewed 490 times.
File size: 706 KB (25 pages).
Privacy: public file


Download original PDF file


JavaEE Avancé - 2 - JPA.pdf (PDF, 706 KB)


Share on social networks



Link to this file download page



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


javaee avance 2 jpa
cl openshift container platform datasheet
openshift container platform
javaee59 05
hudzaifahhafizresume 2016
olmstead plan brief

Link to this page


Permanent link

Use the permanent link to the download page to share your document on Facebook, Twitter, LinkedIn, or directly with a contact by e-Mail, Messenger, Whatsapp, Line..

Short link

Use the short link to share your document on Twitter or by text message (SMS)

HTML Code

Copy the following HTML code to share your document on a Website or Blog

QR Code

QR Code link to PDF file JavaEE Avancé - 2 - JPA.pdf