127 words

Entity name

#1
2017-02-10 17:28

Hello !!

I am new in JPA / ObjectDB development and I have many questions:

 

2. Object creation

I created a class named EBResult which looks like this:

@Entity(name="RESULT")
public class EBResult extends Pojo implements Serializable{.....

In ObjectDB-explorer (which is part of ObjectDB library) I expected to see an object named "RESULT" due to class annotation @Entity(name="RESULT"). Instead I see following:

2.1. Why? Is the @Entity(name="RESULT") ignored by ObjectDB?
2.2. Is the annotation @Entity(name="RESULT") relevant for ObjectDB in any way?

 

caitanya
caitanya's picture
Joined on 2017-02-10
User Post #3
#2
2017-02-12 10:32

Entity names can be used in queries instead of original class names, and are treated by ObjectDB as aliases.

In the explorer the data is organized by classes and class names are displayed, but you are right, the alias names should also be shown and this should be added in future versions of the Explorer.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,697

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