dcsimg

Is it possible to have a Container Managed Persistent Entity Bean which refers to a view rather than a table.

Damien Bootsma

Yes it is possible. Using Views is a good way of mapping multiple tables to one Entity Bean.

Remember that you will also need to write a Primary Key class for your Entity Bean. Refer to http://www.jguru.com/jguru/faq/view.jsp?EID=20875 for details.