Skip to Main Content

Berkeley DB Family

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Abstracting the Persistence API

530138Aug 25 2006 — edited Sep 1 2006
Let me start by saying that I think the Persistence API in 3.0 is a great concept. My concern, however, is the apparent coupling of persistent classes to Berkeley DB. I've been racking my brain to figure out a way of abstracting things so as to isolate my domain code from the persistence details. At present, the only thing I have come up with is to maintain two mirrored class hierarchies: one for persistent classes and the other for transient classes, with a mapping layer between the two. While this concept has been proved in practice (see Stanford University's BaBar project), it's a management nightmare to try and keep two hierarchies of classes in sync.

Anyone have any suggestions?

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 29 2006
Added on Aug 25 2006
5 comments
1,310 views