Two Laptop Bag*
The moose likes Object Relational Mapping and the fly likes Transparency Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Transparency" Watch "Transparency" New topic
Author

Transparency

Maxim Katcharov
Ranch Hand

Joined: Sep 07, 2004
Posts: 113
Is there a persistance framework out there that's more or less completely transparent? Yes, Hibernate, but not quite. It beats out most other technologies in terms of not being seen, but it's not fully transparent. I don't mind the intrusion of an identifier and all that, that's not what I'm getting at.

1:X | 2:Model | 3 ersistance

In Hibernate, as with everything else it seems, the objects really reside on #3. The model that you work with is not the 'real' model, and your code knows this. True transarency, to me, would be the model classes, some special collection of them (that's all, nothing more), and forcefully restarting will yield the model objects just as they were.

Here's a naive idea: say you have a new Cat(), other cats, and a big special collection of cats. allCats.add(newCat) (or someCat.setParent(newCat)) will persist said cat, and as you'd expect, losing the cat as a referance and then removing it from the collection will mean the cat is no more.

Does something like this exist, and what are your thoughts on the matter?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transparency
 
Similar Threads
Translation and language comparison
Generics wilcard
How to do it using Polymorphism now
Beans found - but can't display data! Please help...
Concept