You are viewing a plain text version of this content. The canonical link for it is here.
Posted to graffito-commits@incubator.apache.org by cl...@apache.org on 2005/09/11 08:53:24 UTC
svn commit: r280097 -
/incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/AtomicTypeConverterFactory.java
Author: clombart
Date: Sun Sep 11 01:53:21 2005
New Revision: 280097
URL: http://svn.apache.org/viewcvs?rev=280097&view=rev
Log:
return byte[] instead of String
Modified:
incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/AtomicTypeConverterFactory.java
Modified: incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/AtomicTypeConverterFactory.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/AtomicTypeConverterFactory.java?rev=280097&r1=280096&r2=280097&view=diff
==============================================================================
--- incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/AtomicTypeConverterFactory.java (original)
+++ incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/AtomicTypeConverterFactory.java Sun Sep 11 01:53:21 2005
@@ -198,8 +198,8 @@
return getValueFactory().createValue(value);
}
public Object getJavaObjectFromJcr(Node node, String jcrPropName) throws ValueFormatException, PathNotFoundException, RepositoryException{
- String aString= node.getProperty(jcrPropName).getString();
- return aString;
+ byte[] value = node.getProperty(jcrPropName).getString().getBytes();
+ return value;
}
public Class[] getJavaTypes() {
Class[] javaTypes ={byte[].class};