Hi there, it seems that hbm2ddl ignores entity schema definition from @Table(schema="..") and looks in the default schema when validating. Here is the entity class:
@Entity @Table(name = "a", schema = "s") public class A {... }
If I skip the validation it all works properly. This also seems to break both create and update. Update for example checks the wrong database, then tries to create the table in the current database, but it fails because the table already exists. I'm runnings this against mysql.
Any known workarounds for it?
|