File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Map to View Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Map to View" Watch "Map to View" New topic

Map to View

Renata fonseca
Ranch Hand

Joined: Mar 15, 2002
Posts: 48
1 - Is it possible to map an Entity Bean to a view instant of a table?
2 - Is it possible to map an Entity bean to multiple tables?
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
The answer to both is yes, as long as your particular appserver supports it (some do, some don't). Take a look at the documentation.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
It is important to note that neither of these are standardized by the EJB Specification though as Lasse mentions many Application Servers do support them.
I agree. Here's the link:
subject: Map to View
It's not a secret anymore!