Type-safe Java helper annotation for ArcadeDB - feedback welcome #3137
ivan-velikanov
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@lvca and ArcadeData team
Been working on a small annotation-based library for ArcadeDB. Repo: https://github.com/xyz-jphil/datahelper
Motivation: I like static typing, IDE autocomplete, refactor-rename, find-usages. Wanted field references as first-class objects rather than strings.
What it looks like:
One annotation. Generates
$email,$name,$homeAddressas static field objects. Class definition becomes single source of truth for schema, accessors, and field metadata.Field symbols - use either way:
Chained access for embedded types:
CRUD Examples
Create (fluent builder + upsert):
Read (query + load):
Update (specific fields only):
Update (from partial object):
Update nested field:
Query with ordering:
Query nested field:
Schema registration:
Schema definition is intentionally explicit rather than annotation-based.
TypeDefin code is more transparent - you see exactly what indexes exist. May add annotation sugar later.Accessors: Generates both classic POJO getters/setters (Jackson-compatible) and fluent chainable methods. No Lombok dependency.
Zero-reflection nested types: Embedded objects and
List<NestedType>work automatically. Schema registration detects dependencies and registers in correct order.Graph support:
@ArcadeData(type = VERTEX)and@ArcadeData(type = EDGE)for schema definition. Runtime graph ops use ArcadeDB's native API.Would appreciate feedback on the API design or rough edges.
Beta Was this translation helpful? Give feedback.
All reactions