Search in sources :

Example 1 with OMetadataObject

use of com.orientechnologies.orient.object.metadata.OMetadataObject in project orientdb by orientechnologies.

the class OObjectDatabaseTx method open.

@Override
public <THISDB extends ODatabase> THISDB open(OToken iToken) {
    super.open(iToken);
    entityManager.registerEntityClass(OUser.class);
    entityManager.registerEntityClass(ORole.class);
    metadata = new OMetadataObject((OMetadataInternal) underlying.getMetadata());
    return (THISDB) this;
}
Also used : OMetadataObject(com.orientechnologies.orient.object.metadata.OMetadataObject) OMetadataInternal(com.orientechnologies.orient.core.metadata.OMetadataInternal)

Example 2 with OMetadataObject

use of com.orientechnologies.orient.object.metadata.OMetadataObject in project orientdb by orientechnologies.

the class OObjectDatabaseTx method open.

@Override
public <THISDB extends ODatabase> THISDB open(String iUserName, String iUserPassword) {
    super.open(iUserName, iUserPassword);
    entityManager.registerEntityClass(OUser.class);
    entityManager.registerEntityClass(ORole.class);
    metadata = new OMetadataObject((OMetadataInternal) underlying.getMetadata());
    return (THISDB) this;
}
Also used : OMetadataObject(com.orientechnologies.orient.object.metadata.OMetadataObject) OMetadataInternal(com.orientechnologies.orient.core.metadata.OMetadataInternal)

Aggregations

OMetadataInternal (com.orientechnologies.orient.core.metadata.OMetadataInternal)2 OMetadataObject (com.orientechnologies.orient.object.metadata.OMetadataObject)2