added method to get data class with dimension id from table