I would consider to learn them both at the same time. Spring and NHibernate are both large frameworks with a high learning curve. It will take you some studying and experimenting time to become familiar with and good at it. When you are busy with both the frameworks, you will automatically focus on the most useful parts of them first. Learning the important parts first will make the learning curve steeper.