Actually, I looks like that :

public interface MacAddress {
        interface Factory {
                MacAddress create(BigInteger macNumber);
                MacAddress create(String macString) throws 
MacAddressFormatException;
        }
        Property<BigInteger> mac();
}

And :

@Mixins(MacAddressValue.MacAddressImpl.class)
public interface MacAddressValue extends ValueComposite, MacAddress { }

I got an error from the JSon serialization when I tried to store an entity using this value, so I modified the JSon-inazation the same way I did for BigDecimal (converting to string).
It is now working fine but the JSon content of my entity is :

{"identity ":"mac.V ","type ":"com.netzep.chilliz.domain.model.assembly.voucher.VoucherEntity ","version":"7b1c6969-37ec-41dc-9a09-3244fb04d9c5-3","modified": 1251192705261,"properties": {"macAddress ":"rO0ABXQAF3sibWFjIjoiMTEwMzgyMzQzODA4MSJ9 ","used":false,"identity":"mac.V"},"associations": {"lot":"7461ce863.L"},"manyassociations":{}}

So it was converted in JSon format and then it was serialized...

Am I missing something ?

Phil

Le 25 août 2009 à 04:50, Niclas Hedhman a écrit :


If the Property type in the VC is of any discrete type it should be in json format, but failing that and the type is serializable it will be serialized binary.

Note that any 'pojo' will not be inspected.

-- Niclas


On Aug 24, 2009 10:23 PM, "philippe van dyck" <[email protected]> wrote:

Hi all,

when I take a look at the content sent to the ES, I now have a nice JSon-readable Entity, but when I take a look at the content of the Values stored in this entity... it looks like serialized content .. (?) Am I missing something ? Even though Value JSon-ization seems to be implemented ?

cheers,

phil


_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to