src/NamingStrategy/UnderscoreNamingStrategy.js
/**
     * Generates an identifier from a list of column names obeying a certain string length.
     *
     * This is especially important for Oracle, since it does not allow identifiers larger than 30 chars,
     * however building idents automatically for foreign keys, composite keys or such can easily create
     * very long names.
     *
     * @param {string[]} columnNames
     * @param {string} prefix
     * @param {int} maxSize
     *
     * @returns {string}
     */
Generates an identifier from a list of column names obeying a certain string length.
This is especially important for Oracle, since it does not allow identifiers larger than 30 chars,
however building idents automatically for foreign keys, composite keys or such can easily create
very long names.



@returns {string}
Generates an identifier from a list of column names obeying a certain string length . This is especially important for Oracle since it does not allow identifiers larger than 30 chars however building idents automatically for foreign keys composite keys or such can easily create very long names . @returns { string }
_generateIdentifierName(columnNames, prefix = '', maxSize = 30) {
        const hash = columnNames.map(v => __jymfony.crc32(v).toString(16)).join('');
        return (prefix + '_' + hash).substr(0, maxSize).toUpperCase();
    }
_generateIdentifierName ( columnNames , prefix = '' , maxSize = 30 ) { const hash = columnNames . map ( v => __jymfony . crc32 ( v ) . toString ( 16 ) ) . join ( '' ) ; return ( prefix + '_' + hash ) . substr ( 0 , maxSize ) . toUpperCase ( ) ; }
Generates an identifier from a list of column names obeying a certain string length.
Generates an identifier from a list of column names obeying a certain string length .