spring - explanation about SqlSessionFactory -
i'm new in mybatis , spring. i'm trying understand puzzle between these frameworks.
i haven't found real documentation on sqlsessionfactory.
my question is: sqlsessionfactory , within flow between db , logic @ point it?
thank you.
the primary java interface working mybatis sqlsession. through interface can execute commands, mappers , manage transactions. sqlsessions created sqlsessionfactory instance. sqlsessionfactory contains methods creating instances of sqlsessions different ways. sqlsessionfactory created sqlsessionfactorybuilder can create sqlsessonfactory xml, annotations or hand coded java configuration.
you can check documentation more info
check these 2 links explain spring-mybatis integration.
the db-logic connection takes place in mybatis xml files.
Comments
Post a Comment