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 support for @Value when creating entities using their constructor #450

Closed
mp911de opened this issue Sep 8, 2020 · 0 comments
Closed
Labels
type: enhancement A general enhancement

Comments

@mp911de
Copy link
Member

mp911de commented Sep 8, 2020

We should add support to evaluate SpEL expressions when creating entities using their persistence constructor.

@mp911de mp911de added the type: enhancement A general enhancement label Sep 8, 2020
@mp911de mp911de added this to the 1.2 RC1 (2020.0.0) milestone Sep 8, 2020
mp911de added a commit that referenced this issue Sep 8, 2020
…persistence constructor.

We now support the use of @value in persistence constructors to compute values for constructor creation.

class MyDomainObject {

	public MyDomainObject(long id, @value("#root.my_column") String my_column, @value("5+2") int computed) {
		// …
	}
}
mp911de added a commit that referenced this issue Sep 8, 2020
Document version annotation.
@mp911de mp911de closed this as completed Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant