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

serialize attributes with maxOccurs >1 to list in RDB #27

Closed
pahjbo opened this issue May 30, 2023 · 2 comments · Fixed by #58
Closed

serialize attributes with maxOccurs >1 to list in RDB #27

pahjbo opened this issue May 30, 2023 · 2 comments · Fixed by #58
Labels
Beta Current released tooling has an implementation in test enhancement New feature or request

Comments

@pahjbo
Copy link
Member

pahjbo commented May 30, 2023

In the special case where an attribute has maxOccurs > 1 and has a type that is a PrimitiveType the attribute can be serialised to a comma separated string in a column of the RDB

It should be noted that the current behaviour in the generated Java code is to use a list and a join table - but this clearly is more complex than the suggested solution and requires more complex querying.

@pahjbo pahjbo added the enhancement New feature or request label May 30, 2023
@glemson
Copy link

glemson commented Nov 12, 2023

Could this be a JSON array? That might also be an approach for mapping attributes with structured data types, iso mapping them to multiple columns as one would do in standard ORM. I'll write an issue for that.

@pahjbo pahjbo mentioned this issue Oct 7, 2024
@pahjbo pahjbo linked a pull request Oct 7, 2024 that will close this issue
@pahjbo pahjbo closed this as completed in #58 Oct 7, 2024
@pahjbo pahjbo added the Beta Current released tooling has an implementation in test label Oct 7, 2024
@pahjbo
Copy link
Member Author

pahjbo commented Oct 7, 2024

0.5.7 has a version where the attributes are serialised to a colon separated list in a column.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Beta Current released tooling has an implementation in test enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants