Philipp Meier wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi all,
> 
> 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.

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?

/Rickard


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

Reply via email to