Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can we map a single entity bean into multiple tables

 
vinaykrothapalli kumar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, friends
i am new to ejb i have a small question
how can we map a single entity bean to a multiple tables
please help me
vinay
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by vinaykrothapalli kumar:
Hi, friends
i am new to ejb i have a small question
how can we map a single entity bean to a multiple tables
please help me
vinay


Some server like weblogic provides ability to map an entity to multiple tables.If you are not using such a server create a view joing mutliple tables and then map your entity to the view.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic