Enterprise JavaBeans - Entity Beans and tables (views)

Hello

i am working using ejb 2, entity beans.

My entity beans represents tables from database, one table one entity bean. is this correct?

i have other question; if i have one viws from 5 tables from the database can y make one entity bean for this database view?

can i work with entity beans, for extract data from the database, for one view from 5 tables?

thanks

[401 byte] By [mirentxua] at [2007-11-26 23:16:52]
# 1
Not necessarily. Entity beans can represent data from more than one table. I am forwarding this question to another team and they should be answering to this very shortly. Stay tuned.
Mahesh.Kannana at 2007-7-10 14:17:53 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

My entity beans represents tables from database, one table one entity bean. is this correct?

That should be ok.

have other question; if i have one viws from 5 tables from the database can y >make one entity bean for this database view?

can i work with entity beans, for extract data from the database, for one view >from 5 tables?

I think you are referring to mapping an entity bean to database view. That should be ok.

miteshma at 2007-7-10 14:17:53 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
Hi,Are you usingg CMP beans? If yes, you can map them to more than 1 table. Mapping CMP beans to a database-defined view is not supported.Regards,-marina
jdcmarinaa at 2007-7-10 14:17:53 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...