About Metamodel


Spring Data JPA - PersistenceException thrown

In a Spring-managed application that has 2 EntityManagerFactories (one Hibernate and one ObjectDB), I see the 2 EMFs created successfully on startup, but then subsequently when the application is initializing Spring JPA repositories with Hibernate EntityManagers, the application throws the following stacktrace. I've seen a couple of similar posts regarding a NPE when looking for resources, but they seem different enough that they might be a different issue.   ... After a few hours of debugging, I found that the MetaModel is for JPA 1.0 spec. The dependency listed on the maven page ...


Threading Problem (maybe with Criteria)

Hi all I found some threading problems I do not understand: here is the the link to the testcase http://www.advolux.de/weblink%20forum/test.zip ... was missing in the implementation of the JPA metamodel API. Please try build 2.5.2_02 that will hopefully fix this ...


Spring Data JPA

Hello! When i configure Spring Data JPA to use ObjectDB 2.4.0_03 i get an exception when the context starts. ... This is related to the way that ObjectDB manages the Metamodel , which involves a connection to the database. In obtaining that ...


Schema-Update: Deactivation of automatic entity class removing and introduction of a new class remove in the schema config

Hello, in our application we use ObjectDB in embedded mode as part of the Profile that can be stored and opened by our customers. Our application is an eclipse RCP application with a domain-driven design. The product can be installed in different configurations (in other words with more or less PlugIns). This presents us with further challenges when we have made changes to DB schema for new versions. ... then at least we tried to open the Database with the first Metamodel and tried to access entities they are not part of the second ...


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: ... page, sorry about that. I was generating metamodel by myself. I replaced it with "employeeEntity", but the result is the ...


JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

I'm trying to have the guestbook example running in the following environment: jboss as 7.1.1 final oracle jdk 1.7.0_04 maven 3.0.4 objectdb 2.4.0_04 installed as a module of jboss No IDE is used for building the Guestbook.war only maven.   My GuestDAO code is as follows: ... ( ) ;   javax. persistence . metamodel . ManagedType<Guest> type = em. getMetamodel ( ...



The Subquery interface defines functionality that is specific to subqueries.(Interface of JPA)


First persist takes long time

We detected that the first Persist() of an entity take much longer than all subsequent calls. We have a small example (see Appendix) which outputs the following times: ... empty odb file (e.g. by accessing the types using the JPA Metamodel API) and then you can duplicate that empty odb file (with the types) ...