JPA

JPA 2.0の本

Pro JPA 2: Mastering the Java Persistence API

Patterns of persistence

ORMのデザインパターンに関するdeveloperWorksの記事。 Part 1: Strategies and best practices for modern ORM tools Part 2: Increase code reuse and enhance performance Part 1 of this two-part article covers the basics of achieving a consistent,…

EclipseLink to be the RI for JPA 2.0

JPA

EclipseLinkがJPA 2.0の参照実装になるそうです。

Dali 1.0 Released

JPA

Eclipse Web Tools Platform ProjectのサブプロジェクトであるDali JPA Toolsの1.0がリリースされました。

Java Persistence with Hibernate 到着(2)

Amazonから2冊目が到着しました。2冊注文したつもりはなく、以前予約注文をしていたのを忘れて、さらに注文してしまったのです(涙)。返品するのもお金がかかるので、会社と自宅に置こうか、などと思案しています。誰か買う人がいれば次回のJBoss勉強会にも…

Hibernate 3.2 released, certified JPA compatible

これでHibernate Annotatations/EntityManagerの翻訳を開始できるかな。 誰か手を挙げない?

Pro EJB 3: Java Persistence API(Pro) by Mike Keith, Merrick Schincariol

通勤電車の中で5章まで読みました。とても良い本です。Webアプリケーションにおけるdetached entityの扱い方が丁寧に書かれています(いわゆる「トランザクション外での遅延ロードの問題」の解法です)。

Java Persistence with Hibernate

ただのSecond Editionではなく、JPAを含んだ改訂です。すごーく楽しみ。 Revised Edition of Hibernate in Action Christian Bauer and Gavin King November 2006 | 700 pages ISBN: 1-932394-88-5 参考: Christianのblog

Standardizing Java Persistence with the EJB3 Java Persistence API by Debu Panda

Debu Pandaのblogはこちら

Hibernate Annotation 3.1beta8 and Hibernate entityManager 3.1beta6 released

EJB3 Proposed Final Draft に対応したそうです。後はJBoss EJB3 RC4を待つだけ。

Extended Persistence Context の使い道 (2)

JPA仕様書の続きです。Statelessの例が5.8.1、Statefulの例が5.8.2です。赤字に注目して二つのコードの違いを探してみてください。まずは、5.8.1の方です。こちらはTransaction-scopedなのでEnitityManagerのライフサイクルはトランザクションと同期し、トラ…

Injection Hibernate Session and SessionFactory

JBoss EJB 3.0では@PersistenceContextにEntityManagerだけではなくHibernateのSessionも注入できます。JBossだからなせるワザ。 import org.hibernate.Session; import org.hibernate.SessionFactory; @Stateful public class MyStatefulBean ... { @Persis…

Extended Persistence Context の使い道

JSR-220 JPA(Java Persistence API)では、Persistence Contextという概念が定義されています。これはTransaction Contextのアナロジーで、永続オブジェクトを管理する単位となります(Persistence Contextはトランザクションとは独立であることに注意) 。Pers…