JavaEE Avancé 2 JPA (PDF)




File information


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 529 times.
File size: 723.11 KB (25 pages).
Privacy: public file
















File 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






Download JavaEE Avancé - 2 - JPA



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


Download PDF







Share this file on social networks



     





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 to this page


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






This file has been shared publicly by a user of PDF Archive.
Document ID: 0000488752.
Report illicit content