All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.suru33.sqlitedialect.SQLiteIdentityColumnSupport Maven / Gradle / Ivy

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