Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Query on BMP

 
Gaurav Jain
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic