Search code examples
selectmybatisstatic-data

Storing static table data as a collection in myBatis


I am using myBatis for my ORM frameowrk.I need to load the data of a static table(for eg country table) into memory and be able to use whenever needed by other business objects.Is there any effective way to carry out this in myBatis ?


Solution

  • You need to add <cache/> element to mapping.