aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Inheritance in Entity beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Inheritance in Entity beans" Watch "Inheritance in Entity beans" New topic
Author

Inheritance in Entity beans

Pasu Jags
Greenhorn

Joined: Apr 25, 2001
Posts: 6
Hi,
Is it possible to store entity beans in OODBMS?. If so how inheritance is managed with entity beans?.
Regards,
Pasu
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
I'm not sure that you can store the actual entity beans within an object database, since you generally have to have them extend special classes or implement specific interfaces provided by the database vendor.
You can however, using BMP, store representations of the entity beans within an object database. For example, you could extract the data into a value object type structure and insert this. Probably also means that you have to manage any relationships, etc too.
Anybody else care to comment?
Simon
Peter Reinhardt
Ranch Hand

Joined: Aug 02, 2002
Posts: 57
Originally posted by Simon Brown:
I'm not sure that you can store the actual entity beans within an object database, since you generally have to have them extend special classes or implement specific interfaces provided by the database vendor.

I don't think this is really true. An OODBMS vendor could provide a "plugin" for enabling a transparent CMP persistency to the database (like e.g. Toplink).

Peter.
[ August 06, 2002: Message edited by: Peter Reinhardt ]

SCJP 1.2, SCJD, SCEA, IBM 484, Weblogic 7
 
wood burning stoves
 
subject: Inheritance in Entity beans