Hi all,
so to be sure I understand everything correctly :
1) to JSonize values, we currently use the same mechanism as
Serializable types, this mechanism stores the type info too
2) we need to store the type info (because since it is embedded in an
entity it is not managed by the ES)
3) one solution is to use Property<ValueComposite> instead of
Property<Value> (serious problems with dependencies & Structure4J)
4) there are two different aspects : store the type / store the value,
both are currently solved using the Serializable type (hence hiding
the content of the Value)
5) there is no added value to JSonize the values for the moment (since
they are serialized and unreadable in the stored format)
Don't you think we really need to find a solution to expose the type
and the JSon content of the values to stabilize the storage format ?
cheers,
phil
Le 26 août 2009 à 11:10, Niclas Hedhman a écrit :
On Wed, Aug 26, 2009 at 4:51 PM, Rickard
Öberg<[email protected]> wrote:
These are two unrelated issues. The value serialization has to do
with
whether the type information comes from the code declaration or if
its
embedded in the serialized format. The Association issue is just a
visibility issue, since the type information *is* included in the
stored
format (i.e. the EntityStore is responsible for knowing which
EntityType to
use when deserializing).
Ok, fair enough, but IF we say that there is always a type->composite
lookup, it becomes a related issue. One possible course of action; If
the Property<type> resolves to a ValueComposite then it is used,
otherwise Serializable is assumed. And with such rule, the Visibility
rule would come as baby with the stork... ;-)
Cheers
--
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java
I live here; http://tinyurl.com/2qq9er
I work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug
_______________________________________________
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