Home » Support » Forum » ObjectDB Explorer don't show ManyToOne relations

ObjectDB Explorer don't show ManyToOne relations

#1

Hello support.

we have a problem with the ObjectDB Explorer and @ManyToOne relations.

We persist the entity FolderImpl that has an attribute of type ModelElement.

If we use an interface for the attribute then the ObjectDB Explorer shows NULL for the attribute although our unit test checks that the attribute is not NULL in the database.

@Entity
public class ModelElementImpl implements ModelElement {
    ...
}

@Entity
public class FolderImpl {
    @ManyToOne (targetEntity = ModelElementImpl.class, cascade = {CascadeType.REFRESH})
    private ModelElement parent;
}


If we use the entity for the attribute then the ObjectDB Explorer shows the attribute. But we want to use interfaces for the attributes.

public class FolderImpl {
    @ManyToOne (targetEntity = ModelElementImpl.class, cascade = {CascadeType.REFRESH})
    private ModelElementImpl parent;
}

Can you fix this in the ObjectDB Explorer, please?

#2

This is a new regression of build 2.6.1_03 as a result of skipping interfaces to handle the request of #10 in this forum thread.

Starting build 2.6.1_04 only interfaces that are not available for loading are ignored.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login