[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[dali-dev] schema for JPA connections
|
Hi all,
Is the schema stored somewhere for the current Dali connection? I
generated entitees from a non-default schema (ADMINISTRATOR) and I am
seeing validation errors like:
"Schema "db2admin" cannot be resolved for table "Department"
'db2admin' is the user name/default schema, not the schema that I used
to generate entities. I thought I used to be able to set the schema on
the JPA Property page, but I may have imagined that. Is there somewhere
where this is stored? Note that I'm using the Dali 1.0 maintenance stream.
Aside from validation, I'm interested in this because I'm trying to
write some tooling to update the persistence.xml with the schema that
the user generated entities from, such as:
<properties>
<property name="openjpa.jdbc.Schema" value="ADMINISTRATOR"/>
</properties>
I need some way to figure out which schema was used when generating
entities. I figured this must be stored somewhere in order to do
validation. Is there a way that I could get that information somehow?
Thanks
Tom