About explorer

forum_thread

Wrong @Id type

Hi,  I have noticed some values of id column suddenly switched to int, although it is declared as long in our java class. Do you have idea why this happened? Screenshot attached.   ... Also we have noticed that using tree view of ObjectDB explorer the type of the id column is displayed as long, as it shold be, but ...

 
forum_thread

TYPE Expression

Hi there! Trying to add a simple type expression with the criteria api like in your sample: cb.notEqual(e.type(), cb.literal(Country.class)); results in the error: Caused by: com.objectdb.o.UserException: Attempt to store an instance of a non persistable type java.lang.Class at com.objectdb.o.MSG.d(MSG.java:61) at com.objectdb.o.TYW.writeElement(TYW.java:223) at com.objectdb.o.QRR.l(QRR.java:424) at com.objectdb.o.QRR.g(QRR.java:230) at com.objectdb.o.QRR.b(QRR.java:151) ... seem to work either using simple string query in explorer: SELECT FROM com . test . MyEntity c WHERE TYPE ...

 
forum_thread

Removing entity class

Hello, I am using evaluation version of ObjectDB for long term private project. Recently I hit the 10 entities limit and got exception: com.objectdb.o.UserException: Too many persistable types (>10) - exceeds evaluation limit Among the 10 entities in the project there are 2 entities I added long time ago and they were never really used. I deleted them from Java source code, but there are still in ObjectDB database. The 2 tables for these entities are empty, but the tables exist, so they count into 10 entities limit. ... any simple way how to do it, for example with ObjectDB Explorer? edit ...

 
forum_thread

Unable to persist fields in subclass

I have a superclass Person, with several fields I have a subclass Patient with additional fields. I can persist Patient, but CANNOT persist the fields in this subclass. Why is this? example code: package miscTests; import javafx.beans.property.SimpleStringProperty; import javafx.beans.property.StringProperty; import javax.persistence.Access; import javax.persistence.AccessType; import javax.persistence.MappedSuperclass; ... ;   } } Using Explorer, I can see the schema contains: addressID, contactID, lastName (all ...

 
issue

Improve ObjectDB Server

Improve ObjectDB Server to behave and feel more like a traditional db-server: - Remove SWING dependency (i.e. remove the tray icon or make it external from the core server) - Provide the possibility to easily install the objectdb as service on each system (requires removing swing dependency) - Keep it as a console-only app - Put important log info to the console as well - Provide possibility to not only create new databases but remove existing ones as well ... About removing databases - this is supported by the Explorer by using:      File > Open Remote... > ...

 
forum_thread

Unable to convert 1.x odb file to 2.x

Hi, my company is just about to switch from ObjectDB 1.04.2487 (SE) to ObjectDB 2. So I downloaded the objectdb-2.5.5_02, activated it with our licence, enhancing went well, but then on converting 1 of the DB files I got this error: ... class I made screenshots from old and new Explorer to show this one object which I described in original and converted ...

 
issue

Strange Error with Criteria API and Sorting

We're creating a simple selection (distinct) including an order clause. When watching the created criteria in debugger we get the correct expression: SELECT DISTINCT $1 FROM MyEntity $1 WHERE ((TYPE($1)=class test.MyEntity)) ORDER BY UPPER($1.name) DESC You can see that in the order by there's correctly a "$1" var. Running this (without the type thing before) in the explorer correctly returns the sorted results. However, running this with the criteria API produces this error: ... var. Running this (without the type thing before) in the explorer correctly returns the sorted results. However, running this ...

 
forum_thread

failure to enforce NOT NULL for java.lang.String

my test cases are indicating that @Basic(optional=false) and @Persistent(nullValue=NullValue.EXCEPTION) are not enforced in 2.3.7_08 or that i have failed to understand how to annotate. example: @Entity public class Request {   public Request() { }   @Id @GeneratedValue(strategy=GenerationType.IDENTITY)   private Long id; ... run `mvn clean && mvn test` with success. the DB explorer shows the Request object in the database with username=null. the ...

 
issue

Page #9 entry 0 (key 'bjjl') has 75 extra bytes / Unexpected last index ID: -119 (expected -116)

Please check the attached database file. When running the Doctor, I get   Global Value Errors ------------------- [1] Unexpected last index ID: -119 (expected -116) Page Content Errors ------------------- [1] Page #9 entry 0 has unexpected object format [2] Page #9 entry 0 (key 'bjjl') has 75 extra bytes   Both errors are not fixable. When creating a new db file with the Doctor, this file yields the same errors. Please advise.  Bug Version: 2.4.0 Priority: Normal Status: Fixed Replies: 6 Type:  Bug ...

 
tutorial

Step 5: Add a JSP Page

Explains how to add a JSP page that uses JPA to an Eclipse Web Application.... by right clicking the WebContent node (in the [Package Explorer] window), selecting New > Other... > Web > JSP File and ...