Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AbstractPropertySet are not stored and retrieved properly from UI when using JdbcFeatureStore #510

Open
cboulme opened this issue Jun 21, 2021 · 2 comments
Labels

Comments

@cboulme
Copy link

cboulme commented Jun 21, 2021

I created a new property which extends AbstractPropertySet.
From UI I create a new property and entering the value a,b,c, this is stored in database as [a,b,c].
Then when displayed on UI, it is displayed as [b, [a, c]].

Same if I just set the value as a, it is stored in db as [a] and then displayed as [[a]].
I can't find the line of code making this happens, and I didn't get the issue when using in memory store

@cboulme
Copy link
Author

cboulme commented Jun 22, 2021

FYI if I override the asString in my class which extends AbstractPropertySet with:
@OverRide
public String asString() {
if (value == null) {
return null;
}
return value.stream().collect(Collectors.joining(getListDelimiter()));
}
It saves it in database as a,b,c and display it correctly on UI.
I will do more tests to see if it is enough

@clun
Copy link
Collaborator

clun commented Dec 19, 2022

Amy updated on the behaviour ?

@clun clun added the question label Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants