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

Connecting to multiple Databases using Hibernate

 
Vidya Lakshman
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hi,
I am using Hsql & derbydb using hibernate. HSQL has department & derby has emp table. I am trying to perform join operation on emp & dept.
Any help/pointers in this regard is highly appreciated. Please find the code below.
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseCodeTags when posting code or configuration. I have done this for you this time to demonstrate how much easier it is to read.

Hibernate does not support joining across multiple physical database instances. Actually most databases don't support this either and when they do the databases must be the same type. I am fairly certain that neither Derby nor HSQL support this.

You will need to load this information separately.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic