JanssenProject / JanssenProject/jans

feat(jans-orm): support `AttributeName` annotation on byte arrays

Open
#1,252 0 comments 0 reactions 1 assignee Claimed by @yurem View on GitHub
comp-jans-orm kind-feature priority-3 triaged
Dominant language
Java
Stars
647
Forks
173
Avg merge
1d 18h
Merged PRs (30d)
110

Description

A bean with a field like

```
@AttributeName(name = "mybinattribute") private byte[] field;
...
getter + setter here
```

Generates this error when trying to persist the bean:

```
'io.jans.orm.exception.MappingException: Entry property 'continuation' should has getter with String, String[], Boolean, Integer, Long,
Date, List, AttributeEnum or AttributeEnum[] return type or has annotation JsonObject'
```

ORM seems to expect the annotation over a (Java) `String` field already containing a base64 representation.

It would be better if it works directly on the byte array field thus saving the base64 encoding/decoding.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.