Search code examples
javaspringdata-access-layerdao

Data access layer by file implementation in spring


I defined a Data Access Layer for my application CRUD operations and its interfaces. I want temporary save/load data to/from file but finally I will define appropriate model in relational database. So I wrote a file implementation of defined DAO layer for temporary.

My question is:

Is there a wrapper such as JpaTemplate for file DAO implementation in Spring?

(Sorry if I am using the wrong terminology or grammar, I am still learning the English language.)


Solution

  • There's no general file-based template.

    Depending on the specific format you use, though, you may find tools that can help (even though they aren't templates). For example, you can use JAXB for XML and Jackson for JSON.