This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Can i map my Entity Bean with more than one table ?
No accordingly to the specs, yes accordingly to some container vendors. For example WebLogic allow you mapping an EJB component to multiple database tables.
Can i map my Entity Bean with View(virtual table) ? because view is also a table.
Yes you can. However you�ll have an obvious problem trying to update your database, since views are read only. It will work just fine with BMP and it might work very well with CMP if your container provides kind of ReadOnly concurrency strategy out of the box. I remember about some other tricks, when mapping entity EJBs to database views using CMP: creating a database trigger that intercepts all updates and insertions and redirect them to the real tables. Regards.