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() {
100100 @ Override
101101 public boolean isSimpleType (Class <?> type ) {
102102
103- if (type .getName ().startsWith ("java.math. " ) || type .getName ().startsWith ("java.util ." )) {
103+ if (type .getName ().startsWith ("java." ) || type .getName ().startsWith ("javax ." )) {
104104 return true ;
105105 }
106106
Original file line number Diff line number Diff line change 1515 */
1616package org .springframework .data .keyvalue ;
1717
18+ import java .net .URL ;
19+
1820import org .springframework .data .annotation .Id ;
1921
2022import com .querydsl .core .annotations .QueryEntity ;
@@ -29,6 +31,7 @@ public class Person {
2931 private @ Id String id ;
3032 private String firstname ;
3133 private int age ;
34+ private URL homepage ;
3235
3336 public Person (String firstname , int age ) {
3437 super ();
@@ -59,4 +62,12 @@ public void setFirstname(String firstname) {
5962 public void setAge (int age ) {
6063 this .age = age ;
6164 }
65+
66+ public URL getHomepage () {
67+ return homepage ;
68+ }
69+
70+ public void setHomepage (URL homepage ) {
71+ this .homepage = homepage ;
72+ }
6273}
You can’t perform that action at this time.
0 commit comments