159 words

ObjectDB Explorer don't show ManyToOne relations

#1
2015-03-24 07:54

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?

btc_es
btc_es's picture
Joined on 2014-10-20
User Post #37
#2
2015-03-30 08:42

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)
support
support's picture
Joined on 2010-05-03
User Post #2,179

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel