Hibernate version: 3.2.0 (updated to 3.2.2)
Name and version of the database you are using: Oracle 10g
I'm starting a new EJB 3 project using Hibernate, JBoss Seam and the JBoss AS 4.0.5 (using the JEMS installer 1.2.0.GA).
My persistence.xml defines the properties:
Code:
<property name="hibernate.hbm2ddl.auto" value="validate"/>
<property name="hibernate.default_schema" value="JOE"/>
Starting the JBoss Server I'll get an validation error reporting a missing column. Analyzing the logs I've seen, the validator selects the first table with the configured name of an entity in any matching schema.
As a possible workaround you may disable validation, but there is a better way. Replacing the Hibernate Libraries with the latest versions (3.2.2 Core, 3.2.1 Annotations and EntityManager) solved it.