io.github.suru33.sqlitedialect.SQLiteIdentityColumnSupport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sqlite-dialect Show documentation
Show all versions of sqlite-dialect Show documentation
Hibernate dialect for SQLite
The newest version!
package io.github.suru33.sqlitedialect;
import org.hibernate.MappingException;
import org.hibernate.dialect.identity.IdentityColumnSupportImpl;
/**
* @author suru33
*/
public class SQLiteIdentityColumnSupport extends IdentityColumnSupportImpl {
@Override
public boolean supportsIdentityColumns() {
return true;
}
@Override
public String getIdentitySelectString(String table, String column, int type) throws MappingException {
return "select last_insert_rowid()";
}
@Override
public String getIdentityColumnString(int type) throws MappingException {
return "integer";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy