public static String streamEntityName ( final StreamId streamId ) { // User defined ID if ( streamId instanceof JpaStreamId ) { final JpaStreamId jpaId = ( JpaStreamId ) streamId ; return jpaId . getEntityName ( ) ; } // Default ID if ( streamId . isProjection ( ) ) { return streamId . getName ( ) ; } if ( streamId . getParameters ( ) . size ( ) == 0 ) { return NoParamsStream . class . getSimpleName ( ) ; } return streamId . getName ( ) + "Stream" ; }
Returns the name of the stream entity for a given stream .