Zenna DB

Annotation-driven JSON content mapping

A Java framework that maps JSON content files onto entity classes through annotations. Its stated aim is flexibility with a small implementation.

ArchivedPersonalOpen source

Record

Kind
Package
Role
Author
Started
February 2021
Ended
March 2021
Licence
Apache-2.0

Technology2

Evidence8 sources

The repository is archived and licensed under Apache-2.0licencegithub.com The repository describes itself as "a framework that further develops the idea of Content Framework"repogithub.com The same description gives the name's origin: "Zenna is a name inspired by Zen Buddhism, a branch of Mahayana Buddhism that refers to a state of mind that is no longer agitated."repogithub.com Three releases were published, from v1.0.0 on 2021-03-15 to v1.0.2 on 2021-03-31repogithub.com A content class extends the abstract ContentMapper and gets its data from a final scan() method, rather than implementing an interface the caller has to invokesourcegithub.com The mapping is declared with three annotations — Content, Attribute and Conditionsourcegithub.com Content files and their configuration live under a zenna/ resource root: the test resources hold content.properties beside the JSON content the mappers readsourcegithub.com app/build.gradle publishes org.thinkit.zenna:zenna-db to GitHub Packages, and names catalog-api v1.0.2, precondition-validator v1.1.0 and, for tests, reflection-test-helper v1.0.5 — it does not depend on content-framework, so this is a re-implementation rather than an extensionsourcegithub.com

Links2

Relations4 edges

Catalog APIDepends onCommon lookup behaviour for Java enums Precondition ValidatorDepends onJava argument checks that throw Reflection Test HelperDepends onPrivate-method reflection for tests Content FrameworkSupersedesExternalised values and rules for Java