About drop

issue

[ObjectDB 2.4.1] Unexpected exception (Error 990) on getObjectById

In this code: String id = "my key"; itemDb = pm.getObjectById(ABC.class, id); I get this: ... ( "objectdb:d: \\ temp \\ test.tmp;drop" ) ; PersistenceManager pm = pmf. ...

 
forum_thread

javax.persistence.PersistenceException: No Persistence provider for EntityManager named in Karaf 4.0.7 and OSGi DS test

Hello, I've written a small OSGi Declarative Services application to run in Apache Karaf 4.0.7 to persist an entity into an ObjectDB database. I'm working in C/S model and I have both the ObjectDB server and Karaf running on localhost. When I try to persist the entity I'm getting the  javax.persistence.PersistenceException: No Persistence provider for EntityManager named objectdb://localhost:6136/technolink.odb;user=admin;password=admin exception in the Karaf log. ... to the service? Would be nice if one could simply drop the objectdb bundle into the runtime, request a reference to the Factory ...

 
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: ... ( "objectdb:db/test.tmp;drop" ) ; EntityManager em = emf. ...

 
page

Posting to ObjectDB Website - Important Instructions

Instructions for posting to ObjectDB website (to the forum, the issue tracking and the help desk).... ( "objectdb:$objectdb/db/test.tmp;drop" ) ; EntityManager em = emf. createEntityManager ...

 
forum_thread

List of Enum Values in an entity

Hello, I'm new with ObjectDB and just tried out the example in the Eclipse/Glassfish tutorial (http://www.objectdb.com/tutorial/jpa/eclipse/ee). After testing was successful, I extended the Guest class with an ArrayList of Enums: private ArrayList<GuestFlag> flags; The flags are stored into the database without any problem. In the explorer I can see that it is stored as array of Strings. ... ( "objectdb:test.tmp;drop" ) ;   EntityManager em = emf. ...

 
forum_thread

java.lang.ClassCastException in OSGi runtime when loading data from DB

Hello, I'm trying to use ObjectDB in an OSGi environment (Karaf 4.0.7). I'm now facing ClassCastExceptions on my "entity" classes when I try to read data from the DB. In a very old (2011?) forum entry this problem was already discussed and it appears to be related to classloader problems. My entity is a dedicated bundle. I have one bundle with the database service (doing the actual objectdb actions -> persist, query etc). ... projects for OSGi? I hope I don't have to drop objectdb as I just ordered my first server license... Regards, ...

 
forum_thread

Problems down-casting in WHERE clause

I have a family of related types, like this: @Entity class Base { String val1; String val2; }; @Entity class Derived1 extends Base { String val3; }; @Entity class Derived2 extends Base { String val4; };  I'm trying to implement a query which will return all Base objects which have a given string within any of their String-typed fields.  The query I'm using looks somewhat like this: ... createEntityManagerFactory ( "objectdb:test.tmp;drop" ) ;   EntityManager em = emf. ...

 
forum_thread

Persisting collection where members are subclasses

OK, I have a number of classes which are all subclasses of Entry (e.g., Folder, Link, Book). In the Folder class, there is a @OneToMany Map<String, Entry> children If I store something in that map which is an Entry, then I can persist just fine. But if I try to put any of the subclasses into the map, then I get  ... ( "objectdb:db/test.tmp;drop" ) ; EntityManager em = emf. ...

 
forum_thread

Error: Failed to write value of field X using reflection (oneToMany relation)

Hi there! I have been all day trying to solve this. I have read multiple sites and documentation, but I can go through this. I have a clase named Pedido, that have a reference ManyToOne to a clase Cliente. ... for it. But after, I tried a test case without the drop option when creating the database. And there is when the error shows up. ...

 
forum_thread

Eclipse plugin problem (using ObjectDB as a separate bundle)

Hello support, I have seen multiple attempts to correct similar errors as in the title above - the latest in the 2.2.8.01 release of objectDb. However I still get this error.   Here is my scenario (Groovy 1.8 and Eclipse 3.6) used. I have a com.epimss.lab.data.toxicology.TherapeauticDrugScreenRqst. Nested in this class are the following two classes: com.epimss.lab.data.misc.OtherRqst and com.epimss.lab.data.misc.RequestDateAndNumber. ... if the first URL (NOT an update site) does not work simply drop the attached com.richclientgui.rcptoolbox_1.0.9.jar plugin in the eclipse ...