240 likes | 332 Views
Java Persistence API. Maciej Adamiak. Agenda. Entity , Entity Operations, Query Language. ORM. JPA in an enterprise class application. Providers. JPA. Entity. EntityManager. EntityManagerFactory. Persistence Context. Metamodel. EntityManagerFactory. Example. Definition.
E N D
Java Persistence API Maciej Adamiak
Agenda Entity, EntityOperations, Query Language
JPA Entity EntityManager EntityManagerFactory PersistenceContext Metamodel
EntityManagerFactory Example Definition
Exercise II – creating a domain model Layer • POI, • AltitudePoint, • PathNode • Car • Polygon (Area) • UrbanArea, • GreenArea • ... Line View
EntityManager Example Definition
Transaction Example Definition
MetaModel/ CanonicalMetamodel Example Definition
JPQL II Pathvariable @Entity In BNF: select_statement:: = select_clausefrom_clause [where_clause] [groupby_clause] [having_clause] [orderby_clause]
Criteria API Example Definition
Bibliography Pro JPA 2;Mike Keith, Merrick Schincariol Head First: Design Patterns;Eric Freeman, Elisabeth Freeman JSR 317: JavaTMPersistence API, Version 2.1