If it were a NPN transistor then as along as reverse voltage and current is low then they make very good diodes. Much better temperature tracking if using more than one transistor, than using diodes. Tie the base of a transistor to its collector and now this can be used as a low power diode...