Hi, the OClass class has two methods:
- getSubclasses() that returns the direct subclasses - getAllSubclasses() that returns all the class hierarchy under current class to get the OClass you can use the following: ODatabaseDocument*: db.getMetadata().getSchema().getClass("className") OrientGraph: graph.getRawGraph().getMetadata().getSchema().getClass("className") Thanks Luigi 2016-12-30 1:36 GMT+01:00 Borov <borov...@gmail.com>: > Hi, > > I have a class which is extended by other classes. How do I list all > classes (class names) that extend the parent programmatically in Java? > > I'm using 2.2.14 > > -- > > --- > You received this message because you are subscribed to the Google Groups > "OrientDB" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to orient-database+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to orient-database+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.