@@ -78,7 +78,7 @@ static void afterAll() {
7878 @ Test
7979 void shouldMatchWithStringParameter () {
8080 final var person = new Person ();
81- person .setPropertiesJson (/* language=JSON */ """
81+ person .setProperties (/* language=JSON */ """
8282 [
8383 {
8484 "foo": "bar",
@@ -89,7 +89,7 @@ void shouldMatchWithStringParameter() {
8989 pm .makePersistent (person );
9090
9191 final Query <Person > query = pm .newQuery (Person .class );
92- query .setFilter ("addressesJson .jsonbContains(:foo)" );
92+ query .setFilter ("properties .jsonbContains(:foo)" );
9393 query .setParameters ("[{\" baz\" :111}]" );
9494
9595 final Person queryResult = query .executeUnique ();
@@ -99,7 +99,7 @@ void shouldMatchWithStringParameter() {
9999 @ Test
100100 void shouldMatchWithStringLiteral () {
101101 final var person = new Person ();
102- person .setPropertiesJson (/* language=JSON */ """
102+ person .setProperties (/* language=JSON */ """
103103 [
104104 {
105105 "foo": "bar",
@@ -110,7 +110,7 @@ void shouldMatchWithStringLiteral() {
110110 pm .makePersistent (person );
111111
112112 final Query <Person > query = pm .newQuery (Person .class );
113- query .setFilter ("addressesJson .jsonbContains('[{\" baz\" :111}]')" );
113+ query .setFilter ("properties .jsonbContains('[{\" baz\" :111}]')" );
114114
115115 final Person queryResult = query .executeUnique ();
116116 assertThat (queryResult ).isNotNull ();
@@ -119,7 +119,7 @@ void shouldMatchWithStringLiteral() {
119119 @ Test
120120 void shouldThrowForNonJsonStringArgument () {
121121 final var person = new Person ();
122- person .setPropertiesJson (/* language=JSON */ """
122+ person .setProperties (/* language=JSON */ """
123123 [
124124 {
125125 "foo": "bar",
@@ -130,7 +130,7 @@ void shouldThrowForNonJsonStringArgument() {
130130 pm .makePersistent (person );
131131
132132 final Query <Person > query = pm .newQuery (Person .class );
133- query .setFilter ("addressesJson .jsonbContains('not-json')" );
133+ query .setFilter ("properties .jsonbContains('not-json')" );
134134 query .setParameters (123 );
135135
136136 assertThatExceptionOfType (JDOException .class )
@@ -140,14 +140,14 @@ void shouldThrowForNonJsonStringArgument() {
140140 .withMessage ("""
141141 ERROR: invalid input syntax for type json
142142 Detail: Token "not" is invalid.
143- Position: 189
143+ Position: 172
144144 Where: JSON data, line 1: not...""" );
145145 }
146146
147147 @ Test
148148 void shouldThrowForNonStringArgument () {
149149 final var person = new Person ();
150- person .setPropertiesJson (/* language=JSON */ """
150+ person .setProperties (/* language=JSON */ """
151151 [
152152 {
153153 "foo": "bar",
@@ -158,7 +158,7 @@ void shouldThrowForNonStringArgument() {
158158 pm .makePersistent (person );
159159
160160 final Query <Person > query = pm .newQuery (Person .class );
161- query .setFilter ("addressesJson .jsonbContains(:foo)" );
161+ query .setFilter ("properties .jsonbContains(:foo)" );
162162 query .setParameters (123 );
163163
164164 assertThatExceptionOfType (JDOException .class )
0 commit comments