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

Support for ValueObjects/Embedded [DATAJDBC-111] #345

Closed
spring-projects-issues opened this issue Apr 12, 2017 · 2 comments
Closed

Support for ValueObjects/Embedded [DATAJDBC-111] #345

spring-projects-issues opened this issue Apr 12, 2017 · 2 comments
Assignees
Labels
in: repository type: enhancement

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented Apr 12, 2017

Jens Schauder opened DATAJDBC-111 and commented

If an entity has a reference to a value object (no ID) it should be possible to persist the object in the same table as the entity, with columns matching the properties of the value object plus a prefix configurable via an annotation on the reference to the value object.

    class LegoSet {
        @Id
        Long id;

        @Embed("age_")
        private AgeRange age;
    }

    class AgeRange {
        Duration from;
        Duration to;
    }

should map to a table

LegoSet(id, age_from, age_to)

Issue Links:

Referenced from: pull request #110

3 votes, 6 watchers

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented Nov 14, 2018

Jens Schauder commented

For single attribute classes, the goal can be achieved by custom conversions. See https://stackoverflow.com/a/53296199/66686

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented Jan 21, 2019

Bastian Wilhelm commented

Just for information, I am currently working on this issue

@spring-projects-issues spring-projects-issues added in: repository type: enhancement labels Dec 31, 2020
@spring-projects-issues spring-projects-issues added this to the 1.1 M2 (Moore) milestone Dec 31, 2020
mp911de pushed a commit that referenced this issue Feb 21, 2022
mp911de added a commit that referenced this issue Feb 21, 2022
Consider modifying indicators in query execution. Consider absence of Criteria for delete and update queries. Add test.

Reformat code, update documentation.

Original pull request: #345.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: repository type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants