Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What is transparent persistance?  RSS feed

 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It means that after i design my domain objects i employ some framework that *transparently* provides me with persistance capabilities. Does it mean that my domain objects s'd not be aware of this dude?
If that is the case, i wonder if entity beans provide "transparent" persistance :roll: I do import javax.ejb packages, define interfaces etc. It does'nt really appear "transparent" to me. thoughts?
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It does'nt really appear "transparent" to me. thoughts?

It is transparent to me at least in case of CMP beacuse the container classes take care of persistance and you dont import them in the EJB bean class.
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradeep Bhat:

It is transparent to me at least in case of CMP beacuse the container classes take care of persistance and you dont import them in the EJB bean class.

By import i meant javax.ejb specific interfaces. I had a look the other day at OJB. There are no traces of such framework specific interfaces/ classes in the domain objects. The mappings are maintained in a separate XML file.
So i was wondering what is transparent persistance all about.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By import i meant javax.ejb specific interfaces

In my opinion they dont provided persistence.. the persistence classes provided by conatiner take care of persistence and that is transparent. You will be importing javax.ejb classes though.
If you have used JDO, the domain objects(value objects)do not use any import jdo classes.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!