• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about Inherited Tables and Relationships

 
R. Heydenreich
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have the following entities:

The parent class:


a child class:


and another bean:


Now the question: If I deploy the application (with JBoss), then three tables will be generated: StandingDataBaseBean, Person and Title. But this is not what I want. I want that the title_id points to the ID field in StandingDataBaseBean, and not to a separate TITLE table. How can i express this in annotations?

TIA,
Ralf.
[ November 07, 2008: Message edited by: Ralf Heydenreich ]
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!