-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rickard Öberg schrieb:
> Philipp Meier wrote:
>> I'm currently digging through the qi4j code base and I am familiarizing
>> myself with the entity api. Is there any way to extend the entity stuff
>> to enable the use of "dynamic properties" i.e. properties that are not
>> declared at compile time but at runtime. I wonder wether a Map of
>> List<Propert> or like that will do.
> 
> The EntityStore SPI is created so that types of objects can be fairly 
> dynamic, and even created on the fly. However, Entity composites have 
> compile-time definitions of what properties they have. So what 
> properties an Entity has cannot change in runtime.

Hmm, does the EntityStore rely on the fact that entity type cannot
change at runtime?
>
> You can certainly let an Entity have a Property<Map<String,String>> 
> though, but like Niclas said, this will not be indexable/queryable.
> 
> What is the actual usecase you want to solve?

I wan't to allow the user of the application to define part of the
entity model at runtime.

- -billy.

- --
Philipp Meier     Softwareentwicklung und Beratung
Baldingerweg 11   http://philipp.meier.name/
89077 Ulm         tel:+49-(0)-175-8004580
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkbSssACgkQHNGEnKKTsN3tdwCghMAE8kOKXUaOcAh8gjloARR/
K3YAnRTrp93s6HB2ahlYkZ3r79FzZgst
=KxYz
-----END PGP SIGNATURE-----

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

Reply via email to