org.hibernate.cfg.reveng.dialect
Class MySQLMetaDataDialect
java.lang.Object
org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect
org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect
org.hibernate.cfg.reveng.dialect.MySQLMetaDataDialect
- All Implemented Interfaces:
- MetaDataDialect
public class MySQLMetaDataDialect
- extends JDBCMetaDataDialect
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MySQLMetaDataDialect
public MySQLMetaDataDialect()
getSuggestedPrimaryKeyStrategyName
public Iterator getSuggestedPrimaryKeyStrategyName(String catalog,
String schema,
String table)
- Based on info from http://dev.mysql.com/doc/refman/5.0/en/show-table-status.html
Should work on pre-mysql 5 too since it uses the "old" SHOW TABLE command instead of SELECT from infotable.
- Specified by:
getSuggestedPrimaryKeyStrategyName
in interface MetaDataDialect
- Overrides:
getSuggestedPrimaryKeyStrategyName
in class AbstractMetaDataDialect
- Returns:
- iterator with map elements that has "TABLE_NAME", "TABLE_SCHEMA", "TABLE_CAT", "HIBERNATE_STRATEGY" (null if no possible to determine strategy, otherwise return hibernate identifier strategy name/classname)