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.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact