About Java

api-jpa

JPA Annotations for Java EE

Reference (JavaDoc) of JPA 2 Java EE annotations, including @PersistenceContext, @PersistenceContexts, @PersistenceProperty, @PersistenceUnit, @PersistenceUnits and PersistenceContextType... JPA annotations are in use to integrate JPA into a Java EE application and are managed by the Java EE container: javax.persistence.PersistenceContext ...

 
forum_thread

Java 6/7 Performance Comparison

Hey, I've been using ObjectDB for a small scale home project to gain some familiarity before proposing it in a commercial project at work. What I've noticed though is that when using objectdb in embedded mode based on the console tutorial, there seems to be a bit of a performance gap running the same code between Java 6 & 7 Tracing it through I can see the bottle neck seems to be at the creation of the entity manager and I was wondering if there are any additional configuration options I may have missed while running under java 7. ... a bit of a performance gap running the same code between Java 6 & 7 Tracing it through I can see the bottle neck seems to be ... options I may have missed while running under java 7. long start = System. currentTimeMillis ( ...

 
forum_thread

Object belongs to another EntityManager - ERROR

Hi, From time to time we are getting following error in our project when trying to insert/update a record in database ... at com.objectdb.jpa.EMImpl.commit ( EMImpl. java :290 ) 10:29:14,895 ERROR [ stderr ] ( ... ( EvidencijaZaposlenihDAO. java :408 ) 10:29:14,905 ERROR [ stderr ] ( ... ( EvidencijaZaposlenihNewEditView. java :2257 ) 10:29:14,914 ERROR [ stderr ] ( ...

 
forum_thread

ObjectDB within a resource adapter module and Java EE Connector Architecture

Has anybody managed to use ObjectDB in a resource adapter module in accordance with the Java EE Connector Architecture so that it may be packaged separately from (but used by components of) an EJB Module after the pattern of the classic EAR File structure as illustrated in the Java EE 7 tutorial in Figure 5-1 EAR File Structure ? ... in a resource adapter module in accordance with the Java EE Connector Architecture so that it may be packaged separately from (but ... of the classic EAR File structure as illustrated in the Java EE 7 tutorial in Figure 5-1 EAR File Structure  ? ...

 
doc

printStackTrace()

Prints this throwable and its backtrace to the standard error stream.(Method of java.lang.Throwable)

 
forum_thread

Date field Index is corrupted due to time change

Hi, can you shed some light on why we cannot delete data from the attached DB file. A delete attempt with DB explorer results in the following exception: ... exception ( Error 990 ) Generated by Java HotSpot ( TM ) 64 - Bit Server VM 1.7.0_80 ( on ... . InternalException . f ( InternalException. java : 236 ) at com. objectdb . o . SPW . an ...

 
doc

java.lang.RuntimeException

(Exception of java.langException RuntimeException)

 
doc

java.lang.Throwable

The Throwable class is the superclass of all errors and exceptions in the Java language.(Class of java.langClass Throwable)

 
forum_thread

UserException: Invalid configuration in 'internal' - Check permissions

Hi all,   I have a master/slave code so that each slave reads a subset of points of the same database. ObjectDB entities do not allow serialization and so I have sent, to each slave, the file path. With such information I have tried to create an entityManager, in each slave, as follows: EntityManagerFatory entityManagerFactory = Persistence.createEntityManagerFactory(filePath); EntityManager = entityManagerFactory.createEntityManager(); However I get the following error ... task null exception occurred: org.jppf.JPPFException: java .lang.ExceptionInInitializerError at ... ( NodeTaskWrapper. java :150 ) at java .util.concurrent.Executors$RunnableAdapter.call ( Executors. java ...

 
manual

JPA Named Queries

Explains how to define and how to run JPA named queries.... by separating the JPQL query strings from the Java code. It also enforces the use of query  parameters rather than ... JPA annotation Specifies a static, named query in the Java Persistence query language. See JavaDoc Reference Page... ...