@@ -0,0 +1,882 @@
+#set( $symbol_pound = '#' )%0A#set( $symbol_dollar = '$' )%0A#set( $symbol_escape = '%5C' )%0Apackage $%7Bpackage%7D.repository;%0A%0Aimport org.hibernate.boot.model.naming.Identifier;%0Aimport org.hibernate.engine.jdbc.env.spi.JdbcEnvironment;%0Aimport org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy;%0A%0A/**%0A * Created by tom on 2017/3/3.%0A */%0Apublic class LocalNamingStrategy extends SpringPhysicalNamingStrategy %7B%0A%0A    /**%0A     * %E8%AE%BE%E7%BD%AE%E5%88%97%E5%90%8D%E5%89%8D%E7%BC%80%E3%80%82%0A     */%0A    private static final String _COLUMNPREFIX = %22c_%22;%0A%0A    @Override%0A    public Identifier toPhysicalColumnName(Identifier name, JdbcEnvironment jdbcEnvironment) %7B%0A        Identifier identifier = super.toPhysicalColumnName(name, jdbcEnvironment);%0A        if (!identifier.getText().startsWith(%22c_%22)) %7B%0A            identifier = new Identifier(_COLUMNPREFIX + identifier.getText(), true);%0A        %7D%0A        return identifier;%0A    %7D%0A%7D%0A

add localNaming