About INSERT INTO

forum_thread

Embedding ObjectDB on server application

I'm trying to integrate ObjectDB as part of a server software I am developing. I'm a little lost at the connection file path for the persistent factory. So if I want to pass in the database file path, with relative path, where exactly is it relative to? So I did a test and just wrote: EntityManagerFactory emf = Persistence.createEntityManagerFactory("test.odb"); But I got: Exception: javax.persistence.PersistenceException Message: No Persistence provider for EntityManager named test.odb ... I double checked that ObjectDB.jar is indeed imported into the project...at least on Eclipse. Is there some way I can check on ... (e.g. for using a browser spell checker). To insert formatted lines (e.g. Java code , stack trace ) - ...

 
forum_thread

PersistenceException: Failed to locate field

Hi, have recently been running into this issue when changing the schema: com.objectdb.o._PersistenceException: Failed to locate field in this case, adding a primitive String field to an Entity. pretty sure that in the past schema evolution would not have triggered errors, is this case, a simple new field, shouldn't the policy be to add a null in that field, or other default for that primitive. ... Hi, have recently been running into this issue when changing the schema: ... (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 ...

 
forum_thread

NoSuchFieldError: __odbTracker on NetBeans 7.3 + JBoss 7.1.1

When using inheritance throw exception java.lang.NoSuchFieldError: __odbTracker on NetBeans 7.3 + Jboss 7.1.1, but works fine on NetBeans 7.3 + GlassFish 3.1    ... is still there. I added a call to enhance directly into the code as it is written here  ... (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 ...

 
forum_thread

IN expression in a Criteria Query

Hello, I am trying to migrate my Spring project from Hibernate to ObjectDB. On ObjectDB page, it is written that ObjectDB is 100% compatible with JPA. However, I have problem with this JPQL query: SELECT e FROM Employee e WHERE e.present = false AND NOT EXISTS (SELECT c FROM Computer c WHERE c.employeeEntity = e) ORDER BY e.name with Hibernate, there was no problem with this query, but ObjectDB throws exception: ... this forum thread , or by converting the criteria query into a string with toString ). Regarding the GROUP BY query: ... (e.g. for using a browser spell checker). To insert formatted lines (e.g. Java code , stack trace ) - ...

 
forum_thread

Maven driven compile time ehnancement

Hi,    Just thought I'd share a small bit of Maven config to aid in enhancing persistent classes during compile time. Just add the following to your pom.xml: ... Thank you for this post. Integration of enhancement into Maven is certainly useful. I could use your example to enhance a ... (e.g. for using a browser spell checker). To insert formatted lines (e.g. Java code , stack trace ) - ...

 
forum_thread

Lazy Init / Eager / Join Fetch collection strategy ? What to choose ?

Hello, I'm doing some tests to choose the best collection fetch strategy. I have entities with many lazy collections and i don't want to load them all. In JPA / Hibernate world it exist some tests demonstrating how to choose the best strategy. For example : http://zeroturnaround.com/rebellabs/how-to-use-jpa-correctly-to-avoid-complaints-of-a-slow-application/ In this article,join fetch seems to be the right choice. What about ObjectDb ? The implementation is totally different. ... which collections to choose when retrieving entities into base. Doest it exist a way to do that in JPA / JDO / something ... (e.g. for using a browser spell checker). To insert formatted lines (e.g. Java code , stack trace ) - ...

 
forum_thread

Password Protect Database File

Is there a way to encrypt the odb file so that if hackers somehow steal it they cannot access the data without some kind of password? I would imagine accessing the database from java could just have another connection parameter while accessing from explorer.jar/exe would need to prompt the user for a password for encrypted odb files. ... has access to see. Alternatively, If someone were to break into their servers and take your odb file they'd pretty much have all your ... (e.g. for using a browser spell checker). To insert formatted lines (e.g. Java code , stack trace ) - ...

 
forum_thread

Cascading persistence through an inverse field

Hi! I was playing with cascading persistence with @ManyToMany and inverse @ManyToMany fields, and I noticed that I can only get cascading persistence in one direction. If the "owner" of the relationship is persistent, then objects that are added to the relationship are automatically made persistent. However, I can not get this to work the other way around. I would also like the relationship owner to be persisted if a persisted object is added on the owner side. I have included a minimal example: ... collection. If cascading still fails then we should look into it further. ObjectDB Support ObjectDB - Fast ... (e.g. for using a browser spell checker). To insert formatted lines (e.g. Java code , stack trace ) - ...

 
forum_thread

Failed to enhance dynamic type

Hi, We are trying to enhance a class with OSGI Weaver using the JEnhancer.THIS instance as a class transformer. Works very well except for some entities, i.e. we do have an entity which has: @Override public String getQubletHeadingMain(LanguageContext context) This is a simple implementation of our custom interface and should of course, NOT be enhanced. Yet, we get an error due enhancing: Failed to generate dynamic type com.quasado.galaxy.foundation.api.language.LanguageContext ... Classes for enhancement are loaded into the JVM for analysis (annotation extraction, serialversionUID calculation, ... (e.g. for using a browser spell checker). To insert formatted lines (e.g. Java code , stack trace ) - ...

 
issue

Pessimistic lock timeout - blocks indefinitely

I've attached a simple test which creates an object then kicks off several threads which each try to update the object. I'm using a pessimistic lock with timeout as follows: ... As the timeout wasn't working last week I put the find into a loop which catches the LockTimeoutException, puts the thread to sleep, ... (e.g. for using a browser spell checker). To insert formatted lines (e.g. Java code , stack trace ) - ...