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

Add a EntityConverter for mapping between entity identifiers and entity references [SPR-6374] #11040

Closed
spring-projects-issues opened this issue Nov 17, 2009 · 0 comments
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Keith Donald opened SPR-6374 and commented

Needed by Roo.
Proposal:

  • When binding a String entity id to a entity reference field, look for a static method on entityType named find<EntityName>(<IdType> id). If found, invoke that method to load the entity reference
  • When printing a entity reference as a field, look for a method named getId() to retrieve fetch the id value, then convert the value to String.

Affects: 3.0 RC2

@spring-projects-issues spring-projects-issues added in: data Issues in data modules (jdbc, orm, oxm, tx) type: enhancement A general enhancement labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.0 RC3 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant