projects
/
lgpl
/
argeo-commons.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b7e8d3
)
Add Integer and Float to supported types in JCR set.
author
Mathieu Baudier <mbaudier@argeo.org>
Sun, 6 Dec 2020 05:29:44 +0000
(06:29 +0100)
committer
Mathieu Baudier <mbaudier@argeo.org>
Sun, 6 Dec 2020 05:29:44 +0000
(06:29 +0100)
org.argeo.jcr/src/org/argeo/jcr/Jcr.java
patch
|
blob
|
history
diff --git
a/org.argeo.jcr/src/org/argeo/jcr/Jcr.java
b/org.argeo.jcr/src/org/argeo/jcr/Jcr.java
index 493e4afe27da3e327e84df69210061c3277882e2..3cbdd57f5df6731578875e5328601b79b28606d3 100644
(file)
--- a/
org.argeo.jcr/src/org/argeo/jcr/Jcr.java
+++ b/
org.argeo.jcr/src/org/argeo/jcr/Jcr.java
@@
-309,8
+309,12
@@
public class Jcr {
prop.setValue((String) value);
else if (value instanceof Long)
prop.setValue((Long) value);
+ else if (value instanceof Integer)
+ prop.setValue(((Integer) value).longValue());
else if (value instanceof Double)
prop.setValue((Double) value);
+ else if (value instanceof Float)
+ prop.setValue(((Float) value).doubleValue());
else if (value instanceof Calendar)
prop.setValue((Calendar) value);
else if (value instanceof BigDecimal)