I'm using JBOSS 4.2.2.GA and deploying my project in an ear file. I'm using a DB2 datasource defined in a deployed xml file. Right now, we're in development and have several slichtly-different schemas in the database.
I can tell the datasource to use a default schema. but have not figured out how to tell hibernate to ONLY use the default schema, and to ignore the other schemas. I don't want it to even LOOK for them. JBoss tells me about all the other schemas it finds. I snarl helplessly at it while it thinks it's being helpful.
I can tell persistence.xml to use the default schema so I can get my code to work in development, This is not a solution I can deliver to production as the schema choice is sealed tightly in the ear file where it cannot be configured.
Is there a way I can tell hibernate to use ONLY the default connection in the datasource? Failing that, is there a way to tell it to look for the default connection in a file that's not sealed in the ear?
|