public static String nativeEventsTableName(final StreamId streamId) {
        // User defined ID
        if (streamId instanceof JpaStreamId) {
            final JpaStreamId jpaId = (JpaStreamId) streamId;
            return jpaId.getNativeTableName();
        }
        // Default ID
        if (streamId.isProjection()) {
            return camel2Underscore(streamId.getName());
        }
        if (streamId.getParameters().size() == 0) {
            return NoParamsEvent.NO_PARAMS_EVENTS_TABLE;
        }
        return camel2Underscore(streamId.getName()) + "_events";
    }
public static String nativeEventsTableName ( final StreamId streamId ) { if ( streamId instanceof JpaStreamId ) { final JpaStreamId jpaId = ( JpaStreamId ) streamId ; return jpaId . getNativeTableName ( ) ; } if ( streamId . isProjection ( ) ) { return camel2Underscore ( streamId . getName ( ) ) ; } if ( streamId . getParameters ( ) . size ( ) == 0 ) { return NoParamsEvent . NO_PARAMS_EVENTS_TABLE ; } return camel2Underscore ( streamId . getName ( ) ) + "_events" ; }
Returns a native database events table name.

@param streamId Unique stream identifier.

@return Name that is configured in the {@link javax.persistence.Table} JPA annotation.