I got this problem, and searched much too long for the solution. It's so simple I can't believe that I got struggled with it.

So to prevent others from waisting time, I will ashamed present the solution.

I'm using EclipsePersistence framework for JPA with the Dali plugin of Eclipse. My database is a DB2 on an IBM i host (formerly known as AS400 / i5).

No schema of the needed got tables in the list, but they existed. Only the tables of one single schema could get resolved.

Overriding the default schema in the JPA project dind't work.

有帮助吗?

解决方案

Problem was that I specified a default schema in the connection profile itself. So this blocked the tables from other schemas.

The solution is quite simple:

  • Open the view Data Source Explorer
  • Right click on your connection
  • Select Properties
  • On the left select Driver Propoerties
  • Remove the entry in Default schema

Now it works perfectly!

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top