About INSERT INTO

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

ODB IndexActivation NullPointerException

Hi, We have created indexes on an existing database, which has 4.3 million objects. As soon we create first query, NullPointerException is thrown: ... (IXM.java:322) and then it happens again that we run into a dead lock   Maybe the additional picures of the ... (e.g. for using a browser spell checker). To insert formatted lines (e.g. Java code , stack trace ) - ...

 
forum_thread

Class loading problem with private packages in OSGi environment

Our Business Objects are the JPA entities. We develop our product domain driven. This means we have several domains. Each domain is split into business layer and persistence layer (others are not relevant here). Per domain and per layer, we have an OSGI bundles. The business layer should have no dependency down (an exception is the dependency to the ObjectDB for the enhanced entities).  The persistence Layers have a dependency to the business layer and to the central DataAccess Layer.... This means we have several domains. Each domain is split into business layer and persistence layer (others are not relevant here). Per ... (e.g. for using a browser spell checker). To insert formatted lines (e.g. Java code , stack trace ) - ...

 
forum_thread

ODB should auto-restart if it detects it's necessary

Hi! I find very tricky the need to restart ObjectDB server after schema modifications in a distributed environment. Moreover, not doing it does sometimes trigger ugly errors, which mean application downtime. It might be very useful to have an additional feature (that could be enabled/disabled in objectdb.config) that each time ObjectDB detects a schema change that requires restart, it should automatically restart itself. This way we save a lot of headaches from our dev. ops. Currently we have to manually do: ... This is the error I got after adding a new field into a class, then renaming it after a few ... (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

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

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

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

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

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 ) - ...