jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller" <thomas.tom.muel...@gmail.com>
Subject Re: Removing Items
Date Tue, 24 Jul 2007 07:13:08 GMT

So there are two questions:

1) Should Node.setProperty(null) throw an Exception?
Most people tend to agree it should, but it would be
a problem for backward compatibility.

2) Should JCR support nullable properties?
Some say yes, some no. Let's see what other systems do:
* XML: No (an empty string is not null)
* Files: No (an empty file is not null)
* HTTP: No
* Properties files: No
* Windows registry (if I may): No
* LDAP: No? (not sure)
* SQL: Yes (there is no other way to say 'the property is not set')
* Java Hash tables: Hashtable no, HashMap yes

SQL is the only one supporting it, and it is a major pain there.
Therefore, I suggest to not support nullable properties in JCR.


View raw message