DATACMNS-363 - Revert support for unicode characters in in query method names.
This reverts commit f7679d41b8 as it introduced every Or in query method names to be considered a keyword.
This commit is contained in:
@@ -40,7 +40,6 @@ import org.springframework.data.repository.query.parser.PartTree.OrPart;
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author Phillip Webb
|
||||
* @author Thomas Darimont
|
||||
*/
|
||||
public class PartTreeUnitTests {
|
||||
|
||||
@@ -358,17 +357,6 @@ public class PartTreeUnitTests {
|
||||
assertThat(new PartTree("findByCategoryId", Product.class), is(notNullValue()));
|
||||
}
|
||||
|
||||
/**
|
||||
* @see DATACMNS-363
|
||||
*/
|
||||
@Test
|
||||
public void supportNonLowercaseUnicodeAttributeNamesInQueryMethodNames() throws Exception {
|
||||
|
||||
PartTree tree = new PartTree("findBy생일And이름", DomainObjectWithSpecialChars.class);
|
||||
assertPart(tree, new Part[] { new Part("생일", DomainObjectWithSpecialChars.class),
|
||||
new Part("이름", DomainObjectWithSpecialChars.class) });
|
||||
}
|
||||
|
||||
private static void assertType(Iterable<String> sources, Type type, String property) {
|
||||
assertType(sources, type, property, 1, true);
|
||||
}
|
||||
@@ -446,9 +434,6 @@ public class PartTreeUnitTests {
|
||||
class DomainObjectWithSpecialChars {
|
||||
String øre;
|
||||
String år;
|
||||
|
||||
String 생일; // Birthday
|
||||
String 이름; // Name
|
||||
}
|
||||
|
||||
interface Product {
|
||||
|
||||
Reference in New Issue
Block a user