Getting the list of Entities from the database

How can I get the list of Entities from the database something like this in CUBA and load them in a datasource?

DatabaseMetaData md = conn.getMetaData();
ResultSet rs = md.getTables(null, null, "%", null);
while (rs.next()) {
  System.out.println(rs.getString(3));
}

Hi @mortozakhan,

MetadataTools#getAllPersistentMetaClasses - this is probably what you are looking for.

Regards,
Aleksey

1 Like

Thanks