I have some questions about interaction with Hibernate: Do I use openSession or getCurrentSession (without jta, thread instead)?
Just trying to get my head round the responsibilities of the service layer and repository layer when saving an object to my persistence store.
Say you have an ASP.NET MVC project and are using a service layer, such as in this contact manager tutorial on the asp.net site:http://www.asp.net/mvc/tutorials/iteration-4-ma开发者_Python百科ke-the-a
Am I correct in thinking that the purpose of a service layer includes the following? thinning out of domain models (i.e. movement of certain functions like in caching, instantiation)