Hello, just want to raise this "new feature" here too, as it's related to the SchemaExport/Update tools.
Imaging those tools are triggered (executed) by some
magic ... meaning persistence.xml from EJB 3.0 ... and they can't connect to the database. It's down, mis-configured or what ever. Now, those can-not-exception(s) are logged and collected and you could handle them, if you held a reference to the tool. But, here you don't. What happens is, you see those exceptions printed, your code runs and the first database access fails.
See
http://forum.hibernate.org/viewtopic.php?p=2250782#2250782 for the original posting.
How can this be addressed? Perhaps a new property like:
Code:
<property name="hibernate.hbm2ddl.throwExceptions" value="true" />
Cheers,
Sormuras