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

sqlsessionfactory

sqlsessionfactorybean

check these 2 links explain spring-mybatis integration.

spring&mybatis

spring&mybatis2

the db-logic connection takes place in mybatis xml files.

sqlmapper


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -