About FROM

issue

preUpdate-methods are called when there is no change

Dear Support Team, we ran into some difficulties with a database. When fetching a entity using the EntityManager and afterwards calling "iterator().next()" a transaction begin/commit will end up in updating the Entity even there was no change. We attached a simplified test case where only 2 reduced versions of the entities are available. But it still shows the unexpected behavior. To reproduce just run the "EntryPoint" class. ... id or content (and not the methods that are inherited from java.lang.Object , which are based on the object address, which is not ...

 
issue

Schema-Update: Rename superclass and remove one subclass

Hello, we renamed a superclass and removed one of the subclass. If we then try to open the Database (with ObjectDB-Explorer) we get a "Failed to generate dynamic type ..."   Small Example: Generate Database ... q = em. createQuery ( "SELECT c FROM " + RenamedSuperClass. class . getName ( ) + ...

 
tutorial

Step 5: Add a JSP Page

Explains how to add a JSP page that uses JPA to an Eclipse Web Application.... the guests that have already signed (which are retrieved from the request's "guests" attribute that is set by the servlet in the ...

 
forum_thread

Merge with Parent/Child entities not possible

Can you please tell me why the following unit test ends with "[ObjectDB 2.5.7_02] javax.persistence.RollbackException"? ... = entityManager. createQuery ( "Select p from ParentEntity p" , ParentEntity. class ) ; ParentEntity ...

 
forum_thread

Possible issue for default id generator

First all, congratulations to Objectdb team for the excellent work. Possible issue for default id generator when strategy is sequence. Error: Incomplete definition of auto value in field MyTestCase$MyEntity.idgenerator name is missing (error 342) Please see attached file MyTestCase.java lines 35 and 36. I am not an expert but in my opinion there is no default generator but the element generator is optional. Thanks. ... a runtime error, but maybe to ease porting applications from other JPA providers to ObjectDB a default should be provided in future ...

 
forum_thread

Cache usage

after a runtime of several weeks we are now analyzing the usage of the cache and so on. Looking at the heap dump we suspect that the cache is really used (see heap dump attached), the RAM allocated by objectdb is much less than we would expect. The database file has around 25 GByte of size and there is heavy traffic of around 400 clients communicating permanently via webSockets to the objectdb. The config is attached as well. The question is: is the cache really used ? ... query results are in the cache. Results have to be removed from the cache on every change to the data that may affect them. Query programs ...

 
tutorial

Step 5: Add a JSP Page

Explains how to add a JSP page that uses JPA to a NetBeans Web Application.... the guests that have already signed (which are retrieved from the request's "guests" attribute that is set by the servlet in the ...

 
forum_thread

Not Enhanced: ...: com.objectdb.o.TEX: Type ..._$$_javassist_1 is not found

Hello! ObjectDB logs these errors when I start the app and open the log in page. (see attachment) dk.mandecentret.boundary.AuthB is a @javax.enterprise.context.RequestScoped and dk.mandecentret.boundary.UserSessionB is @javax.enterprise.context.SessionScoped. AuthB contains UserSessionB through @Inject. Both are not entities or anything related to ObjectDB. AuthB is used in a JSF page for login. UserSessionB contains @Inject UserC, which is @Stateless for dealing with CRUD operations on User (an ObjectDB Entity). ... > The level of this message may change from WARNING to DEBUG in the future. ObjectDB Support ...

 
forum_thread

InternalError on query of empty database

Hi, I have reasons for sometimes trying to query the database before anything has been created. The problem is the database throws a InternalException when that happens. Is it possible to throw something that identifies that that is the issue, say something like "MissingSchemaException", ie something that clearly shows its because no data of that type has been added? This just makes the exception catching cleaner. Thought thinking about it, it probably needs to be a JPA exception, maybe something like javax.persistence.EntityNotFoundException? ... Hi, Query I'm running is: SELECT DISTINCT $1 FROM CDI $1 JOIN $1.attributeList $2 JOIN $1.attributeList $3 WHERE ...

 
forum_thread

NullPointerException in ENH.g(ENH.java:401)

Hi, I experience a NullPointerException inside the objectdb code with the following stacktrace: ... an unexpected object type on reading a list of objects from the database. Please check your database file for errors using the ...