SlideShare uma empresa Scribd logo
1 de 21
JPA2 Done Right
Easy JPA2 ,[object Object]
Easy JPA2 ,[object Object],[object Object],[object Object]
Easy JPA2 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Easy JPA2 ,[object Object],[object Object]
Easy JPA2 ,[object Object],<?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?> <persistence xmlns=&quot;http://java.sun.com/xml/ns/persistence&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/persistence  http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd&quot; version=&quot;2.0&quot;> <persistence-unit name=&quot;org.hibernate.jpa&quot;> <provider>org.hibernate.ejb.HibernatePersistence</provider> <class>lv.jug.jpa.CustomerEntity</class> <properties> <property name=&quot;hibernate.connection.url&quot;  value=&quot;jdbc:hsqldb:./.db/testfiles&quot;/> <property name=&quot;hibernate.connection.driver_class&quot; value=&quot;org.hsqldb.jdbc.JDBCDriver&quot;/> <property name=&quot;hibernate.connection.username&quot; value=&quot;SA&quot;/> <property name=&quot;hibernate.connection.password&quot; value=&quot;&quot;/> <property name=&quot;hibernate.archive.autodetection&quot; value=&quot;class&quot;/> <property name=&quot;hibernate.show_sql&quot; value=&quot;true&quot;/> <property name=&quot;hibernate.format_sql&quot; value=&quot;true&quot;/> <property name=&quot;hbm2ddl.auto&quot; value=&quot;update&quot;/> </properties> </persistence-unit> </persistence>
Easy JPA2 ,[object Object],<?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?> <persistence xmlns=&quot;http://java.sun.com/xml/ns/persistence&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/persistence  http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd&quot; version=&quot;2.0&quot;> <persistence-unit name=&quot;org.hibernate.jpa&quot;> <provider>org.hibernate.ejb.HibernatePersistence</provider> <class>lv.jug.jpa.CustomerEntity</class> <properties> <property name=&quot;hibernate.connection.url&quot;  value=&quot;jdbc:hsqldb:./.db/testfiles&quot;/> <property name=&quot;hibernate.connection.driver_class&quot; value=&quot;org.hsqldb.jdbc.JDBCDriver&quot;/> <property name=&quot;hibernate.connection.username&quot; value=&quot;SA&quot;/> <property name=&quot;hibernate.connection.password&quot; value=&quot;&quot;/> <property name=&quot;hibernate.archive.autodetection&quot; value=&quot;class&quot;/> <property name=&quot;hibernate.show_sql&quot; value=&quot;true&quot;/> <property name=&quot;hibernate.format_sql&quot; value=&quot;true&quot;/> <property name=&quot;hbm2ddl.auto&quot; value=&quot;update&quot;/> </properties> </persistence-unit> </persistence>
Easy JPA2 ,[object Object]
Easy JPA2 ,[object Object]
Easy JPA2 ? ,[object Object]
Easy JPA2? ,[object Object]
Easy JPA2 ,[object Object]
Easy JPA2  ? ,[object Object]
Not Easy JPA2 ? ,[object Object]
Not Easy JPA2 ? ,[object Object]
Done Right ,[object Object],[object Object]
Done Right ,[object Object],[object Object],[object Object],[object Object],[object Object]
Done Right ,[object Object]
Easy JPA2 ,[object Object]
Easy JPA2 ,[object Object],[object Object],[object Object]
Easy JPA2 ,[object Object],[object Object]

Mais conteúdo relacionado

Destaque (10)

Evidence Qualitylife
Evidence QualitylifeEvidence Qualitylife
Evidence Qualitylife
 
LatJUG. Java Bytecode Fundamentals
LatJUG. Java Bytecode FundamentalsLatJUG. Java Bytecode Fundamentals
LatJUG. Java Bytecode Fundamentals
 
Elegance Freguesia
Elegance FreguesiaElegance Freguesia
Elegance Freguesia
 
LatJUG.Jun-2011
LatJUG.Jun-2011LatJUG.Jun-2011
LatJUG.Jun-2011
 
JUG.LV What do you know about Logging?
JUG.LV What do you know about Logging?JUG.LV What do you know about Logging?
JUG.LV What do you know about Logging?
 
LatJUG. Spring Roo
LatJUG. Spring RooLatJUG. Spring Roo
LatJUG. Spring Roo
 
The Premium Club 2010
The Premium Club 2010The Premium Club 2010
The Premium Club 2010
 
LatJUG. JSF2.0 - The JavaEE6 Standard
LatJUG. JSF2.0 - The JavaEE6 StandardLatJUG. JSF2.0 - The JavaEE6 Standard
LatJUG. JSF2.0 - The JavaEE6 Standard
 
LatJUG. Google App Engine
LatJUG. Google App EngineLatJUG. Google App Engine
LatJUG. Google App Engine
 
LatJUG Feb-2011
LatJUG Feb-2011LatJUG Feb-2011
LatJUG Feb-2011
 

LatJUG. JPA2 Done Right

  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.