I'm using JPA and Toplink to map classes to data source tables.My table is on DB2 but I can access it from Oracle 10g using database link(drda). I can also directly select from it using a jdbc connection in my application.But I cannot map it to a class with @Table annotation in jpa. I've also created a synonym for this table but it seems jpa doesn't recognize the synonym either.I don't know if there is an annotation specifically for synonyms.
I've tested this both with IntelliIDEA 9.0 and MyEclipse 7.5 and the result is the same.
Any sugestions would be appreciated.