File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
main/java/org/springframework/data/keyvalue/core/mapping/context
test/java/org/springframework/data/keyvalue Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ public KeyValueSimpleTypeHolder() {
100
100
@ Override
101
101
public boolean isSimpleType (Class <?> type ) {
102
102
103
- if (type .getName ().startsWith ("java.math. " ) || type .getName ().startsWith ("java.util ." )) {
103
+ if (type .getName ().startsWith ("java." ) || type .getName ().startsWith ("javax ." )) {
104
104
return true ;
105
105
}
106
106
Original file line number Diff line number Diff line change 15
15
*/
16
16
package org .springframework .data .keyvalue ;
17
17
18
+ import java .net .URL ;
19
+
18
20
import org .springframework .data .annotation .Id ;
19
21
20
22
import com .querydsl .core .annotations .QueryEntity ;
@@ -29,6 +31,7 @@ public class Person {
29
31
private @ Id String id ;
30
32
private String firstname ;
31
33
private int age ;
34
+ private URL homepage ;
32
35
33
36
public Person (String firstname , int age ) {
34
37
super ();
@@ -59,4 +62,12 @@ public void setFirstname(String firstname) {
59
62
public void setAge (int age ) {
60
63
this .age = age ;
61
64
}
65
+
66
+ public URL getHomepage () {
67
+ return homepage ;
68
+ }
69
+
70
+ public void setHomepage (URL homepage ) {
71
+ this .homepage = homepage ;
72
+ }
62
73
}
You can’t perform that action at this time.
0 commit comments