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

Open
pahjbo opened this issue May 30, 2023 · 1 comment
Open

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

pahjbo opened this issue May 30, 2023 · 1 comment
Labels
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.

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

No branches or pull requests

2 participants