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

html - jquery - p element wont show after I hid it -

python - BeautifulSoup: How to get the nearest tag -

mysql - Trying to get RmySQL to work but not understanding bash's export or filesystem conventions -