polygene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Merlin <p...@nosphere.org>
Subject Re: Listing composite properties
Date Fri, 21 Oct 2016 17:06:10 GMT
Hi,

zhuangmz08 a écrit :
> Hi, I'm trying to persist my Value/Entity Composite into database. Can I list all the
properties (name, type) of the composite? Thanks.

Yes! You need to get hold of your Value/Entity descriptors.
This can be done through the ZestAPI, e.g.:

@Structure ZestAPI api;

void someMethod()
{
    EntityDescriptor descriptor = api.entityDescriptorFor( someEntity );
}

HTH


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message