Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Latest commit

 

History

History
23 lines (17 loc) · 1.06 KB

README.md

File metadata and controls

23 lines (17 loc) · 1.06 KB

JPA/Eclipselink UUID primary key sample

Example project for demonstrating an enhanced usage of UUIDs as primary keys in JPA, using Version 1 (time-based) UUIDs.

Special Features

The UUID is not, naively serialized as String, but converted into a 16-byte array for optimized storage. The UUIDs are generated transparently while persisting the entity. This is achieved by registering a custom UUID sequence generator in EclipseLink.

The JUG Java Uuid Generator library serves as source for generation of (Version-1) UUIDs.

Further references: