[Logo] Space4J - Java Persistence
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Moderation Log] Moderation Log   [Register] Register / 
[Login] Login 
Inconsistency between CreateObjectCmd and RemoveCmd  XML
Forum Index » General Questions
Author Message
Riduidel



Joined: 16/06/2010 10:57:19
Messages: 6
Offline

Hi, there seems to be a little inconsistency in the application of Create/Remove commands to SimpleSpace4J.
Indeed, i've created a small test (in my mavenization process) to check application of basic commands to a SimpleSpace4J.

In this test, I've the following test method :



where testedSpace4J is a SimpleSpace4J.

When executing this test method, I obtain the following result :


I don't understand the rationale behind this assymetric operation. Can someone explain it to me ? Thanks

To my mind, a logical way of handling things would be to have sylmetric create/delete operations, no ?

This message was edited 1 time. Last update was at 01/07/2010 03:08:07

saoj



Joined: 05/09/2008 13:26:12
Messages: 45
Offline

The RemoveCmd is to be used in conjunction with PutCmd, in other words, to remove an object from a Collection.

What you need is a RemoveObjectCmd to remove a object from the space. This was missing but I have added it there.

Please download the beta jar: http://www.space4j.org/beta/space4j.jar





-Sergio Oliveira Junior
Riduidel



Joined: 16/06/2010 10:57:19
Messages: 6
Offline

You know i have read access to Space4J SVN ? As a consequence, you only have to commit your addition

Thanks for the job.
 
Forum Index » General Questions
Go to:   
Powered by JForum 2.1.8 © JForum Team