File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Query on BMP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Query on BMP" Watch "Query on BMP" New topic
Author

Query on BMP

Gaurav Jain
Ranch Hand

Joined: Mar 11, 2004
Posts: 108
Can a single BMP cater to multiple tables??
That is in a a finder method (ejbFindByPrimaryKey) can i use a join on 2 diff tables??
Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1064
Yes. If it is BMP, then the bean provider can write SQL code that spans multiple tables. The complete BMP entity bean also can map to more than 1 table in the database.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Query on BMP
 
Similar Threads
BMP
Doubts in EJB
Can I map single table to different Entity Bean?
Entity beans and primary keys
Multiple Tables catered by a single BMP