0

I am looking for a way to create an hibernate entity, which will be built by data from several schemas. Most of the properties are on a single table on the first schema. One property represents an ID of a row, which is on a table on the second schema.

Is it possible to do such thing?

Smita Ahinave
  • 1,901
  • 7
  • 23
  • 42
Matan D
  • 131
  • 10

1 Answers1

1

This will be possible.

You will need to make sure the second schema GRANTs access to the first one for the relevant table and then you will be able to use the @SecondaryTables annotation described here as if it were in the first schema.

Community
  • 1
  • 1
saml
  • 794
  • 1
  • 9
  • 20