Hibernate Session Factory - Session vs DbSession

I have a question on that the difference between using the Session and DbSession objects in OpenMRS, what platform versions to use for each (across 1.11.x and 2.x) and what the implications for using one or the other are

@ssmusoke does this provide the answer you are looking for? https://github.com/openmrs/openmrs-core/blob/master/api/src/main/java/org/openmrs/api/db/hibernate/DbSession.java#L44-L50

@dkayiwa so what is the bean name used for the new session factory to provide the DbSession

@dkayiwa no worries found the dbSessionFactory bean definition

Please have a look at https://wiki.openmrs.org/display/docs/Supporting+Platform+2.0+and+below as well.