This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

1-M relationship & join queries?

Jolie Lee
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a 1-M relationship defined in ejb-jar.xml for table A and table B.

table A consists of:
id (PK)

table B consists of
bid (PK)
id (FK)

i want to do a search based on the name on table A, and when user search, i want to be able to get the version on table B as well.

how can i do that? do i need to have a join query in my jboss-jdbc.xml?

pls advise.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic