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]

# 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.
# 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