Search code examples
javaxodus

How to get property types of a given Entity type in Xodus?


Is there a way for Xodus API to check the type of property? Xodus have a method txn.getEntityTypes(); but I have not found a way to get the property types of a given Entity Type, is that possible?


Solution

  • There is no way to get property types of a given entity type. In case if all entities of the given entity type have the same set of properties, one can take an entity of given entity type and use method “entity.getPropertyNames()”.