[hibernate-dev] How do I determine that the underlying database is a MySQL database?

Steve Ebersole steve at hibernate.org
Fri Apr 1 11:22:28 EDT 2011


You would use java.sql.DatabaseMetaData which is exactly what Hibernate is 
using to detemine the dialect to use.

And this is not a help forum, this is a mailing list to discuss the 
development of Hibernate.

On Friday, April 01, 2011, at 10:12 am, Tom Muldoon wrote:
> I currently do not specify the hibernate.dialect in my configuration (which
> means Hibernate must be determining the dialect based upon my url, right?)
> but even if I did, I don't know how to get the property value at runtime.
> Whatever the case, what's the best way to determine the underlying
> database at runtime?
> 
> Thanks in advance, Tom
> 
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev

---
Steve Ebersole <steve at hibernate.org>
http://hibernate.org



More information about the hibernate-dev mailing list