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

Added a SqlComponentFactory interface to let user provide a custom fa… #30

Conversation

Ali-RS
Copy link
Contributor

@Ali-RS Ali-RS commented Jun 23, 2023

…ctory for loading sql components, the default implementation instantiates the class using a no-arg constructor and uses reflection to load fields. Also added FieldType.readIntoArray() method to let us read fields from sql results into an array instead of applying them directly to the target object. These changes should let the user expand the API to support Java Records in sql components.

Forum topic:
https://hub.jmonkeyengine.org/t/persistentcomponent-with-java-records-deserializing-issue/46885

…ctory for loading sql components, the default implementation instantiates the class using a no-arg constructor and uses reflection to load fields. Also added FieldType.readIntoArray() method to let us read fields from sql results into an array instead of applying them directly to the target object. These changes should let user expand the API to support Java Records in sql components.
@pspeed42 pspeed42 merged commit 1182f27 into jMonkeyEngine-Contributions:master Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants