max wrote:
huh? hibernate does not do any insert via schemaupdate...
max, SchemaUpdate doesn't do inserts, but when it sees the table from the other schema, it fails to create the table in the default schema. Later, when Hibernate tries to do anything with that table, it fails because it
is using the default_schema property, and the table doesn't exist. This is definitely a problem when using Hibernate on Oracle databases. Multiple Oracle representatives have told me, "Just make sure and qualify all your table names with the schema." There is
no other solution. I think they should have designed it differently, but since they didn't, I guess it becomes Hibernate's responsibility to support their quirky behavior. It currently does not do that since we are unable to specify a default schema that applies during SchemaUpdate. This is a major headache for those of use using SchemaUpdate. As a temporary solution for the project I'm on now, we've manually added the schema name to every table attribute in every mapping (like <class name="Foo" table="mySchema.foo">). This causes other issues, but ignorable ones for the moment.
Can we please get some help on this?[/b]