2009.09.14 09:00

Implementing composite keys with JPA and Hibernate

The issue of the legacy database schema

Stephen B. Morris (stephenbjm@yahoo.com), CTO, Omey Communications

Summary:  Nowadays, with the widespread use and deployment of Object-Relational Mapping (ORM) tools, you don't generally have to think too hard about such arcane issues as composite keys. Normally, the choice of key design can be a simple integer, and this can be left with confidence to the tooling. Occasionally, you come across a situation where a composite key is required, and you need a strategy for this. This tip shows you how to implement composite keys with JPA and Hibernate.

URL : http://www.ibm.com/developerworks/java/library/os-hibernatejpa/index.html?ca=dgr-jw22JPA-Hibernate&S_TACT=105AGX59&S_CMP=grjw22

신고
Trackback 0 Comment 3


티스토리 툴바