• Post Reply Bookmark Topic Watch Topic
  • New Topic

Mapping an Entity Bean with Multiple tables  RSS feed

 
Saran Vel
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to map the attributes of an entity bean to more than one table without the support of O/R mapping tools like TopLink..?
Is Ejb2.0 spec directly support that..?
I know we can make relationship among beans.. how abt mapping w/ multiple tables..
Any help is highly appreciated..
Thanks
Saran
 
Jim Baiter
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use bean-managed persistence and write the SQL for the mapping yourself. If your database supports updateable views you can use container-managed persistence by creating a view to represent the join of the tables.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!