Skip to content

DATAJDBC-400 - Remove Identifier from callbacks and deprecate it in events also containing an entity #164

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

Closed
wants to merge 3 commits into from

Conversation

schauder
Copy link
Contributor

@schauder schauder commented Jul 26, 2019

schauder added 3 commits July 26, 2019 09:15
Creation of the Identifier has been shown to cost significant performance.
…an entity.

Creation of the Identifier has been shown to cost significant performance.
mp911de pushed a commit that referenced this pull request Jul 29, 2019
Retrieval of the Identifier has been shown to cost significant performance.

Original pull request: #164.
mp911de pushed a commit that referenced this pull request Jul 29, 2019
…an entity.

Retrieval of the Identifier has been shown to cost significant performance.

Original pull request: #164.
mp911de added a commit that referenced this pull request Jul 29, 2019
Add version since which deprecations are in place. Inline variables.

Original pull request: #164.
@mp911de
Copy link
Member

mp911de commented Jul 29, 2019

That's merged and polished now.

@mp911de mp911de closed this Jul 29, 2019
@mp911de mp911de deleted the issue/DATAJDBC-400 branch July 29, 2019 12:18
mp911de added a commit that referenced this pull request Feb 21, 2022
We now support SpEL expressions in string-based queries to bind parameters for more dynamic queries. SpEL expressions are enclosed in :#{…} and rendered as synthetic named parameter so their values are substituted with bound parameters to avoid SQL injection attach vectors.

interface PersonRepository extends Repository<Person, String> {

	@query("SELECT * FROM person WHERE lastname = :#{'hello'}")
	Mono<Person> findHello();

	@query("SELECT * FROM person WHERE lastname = :#{[0]} and firstname = :firstname")
	Mono<Person> findByLastnameAndFirstname(@param("value") String value, @param("firstname") String firstname);

	@query("SELECT * FROM person WHERE lastname = :#{#person.name}")
	Mono<Person> findByExample(@param("person") Person person);
}
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.

2 participants