Phase transitions in hadronic matter