About remove

forum_thread

Schema migration - long to String

Hi, I need to change field type in our model from long to String. After changing filed type in our model and repairing database with doctor, most of our entities is gone. Doctor puts some errors on console: #1 2013-01-02 18:39 Hi, I need to change field type in our model from long to String. After changing filed type in our model ...

 
issue

Issue with DISTINCT Select

It is getting more and more frustrating :( We've introduced distinct select instead of regular selection in our code (no changes else) and suddenly receive invalid identifiers in queries exceptions in various queries. Here's the stacktrace: ... the way, why are you using fully qualified names? if you remove entity names from your @Entity tags you will be able to use ...

 
forum_thread

Empty temporary dat files in the temp folder

Hello, We have questions regarding the pagesX.dat files in the temp directory. We detected a problem on a machine with ‘only’ 2GB free memory on disc drive C:/ because during using our Product the %temp%/objectdb_123... folder growth up to 2GB. And then we run into some following errors due to lack of memory. ... begin a transaction, do some stuff (find, persist, remove …) and then commit or in the case of errors rollback the ...

 
forum_thread

How to resolve 404 errors with Eclipse/Maven Spring MVC

I have created a project as guided by www.objectdb.com/tutorial/jpa/eclipse/spring/run. When I abandon eclipse and use the maven command line to deploy this Spring MVC web app to jetty and point my browser to localhost:8080/Guestbook/ it works as your tutorial says! ... use eclipse to single step thru the source code. Also, to remove the one syntax error that eclipse was giving me, I commented out the ... on the servers tab. Right click on Tomcat 6 server->add remove->move guestbook to the right hand "configured" pane. (6) ...

 
issue

Different behavior for two equal queries

Hi, I've got two equal queries though they behave differently: SELECT FROM com.quasado.foundation.communication.contact.individual.IndividualContact $1 WHERE (($1.organisation.name LIKE '%Q%')) This correctly returns one entry from my database ... the results of step 2by:   $1. [Step 4] Remove duplicates from the groups of step 3. [Step 5] Apply selection and ... the results of step 26by:   $1. [Step 28] Remove duplicates from the groups of step 27. [Step 29] Apply selection and ...

 
issue

InternalException during producer/consumer scenario

Hi, I'm trying to use objectdb in a producer/consumer scenario. Producer threads put message objects into a table while consumer threads remove the objects based on age, priority, etc. There are 2 main motivations for using objectdb for this purpose rather than a queue or similar data structure: 1) The consumer can select the "next" object based on a range of potentially complex criteria. 2) The number of objects produced can be potentially exceed available memory so can be held on disk within the objectdb file. ... put message objects into a table while consumer threads remove the objects based on age, priority, etc. There are 2 main ... at com.objectdb.jpa.EMImpl.remove(EMImpl.java:377) at ... at com.objectdb.jpa.EMImpl.remove(EMImpl.java:374) ... 4 more   Exception 2: ...

 
forum_thread

Recursive calls with @PreUpdate annotation and Glassfish OutOfMemoryError

Hi,    I've had an issue that started today and it's got me stumped. I've got a subclass User, which extends a BaseEntity. The BaseEntity has a @PreUpdate as per: ... Once the error is hit, it keeps on happening and until I remove the enhancement (I do this build time with maven). First, for ... issue in client/server mode. The issue persists until I remove the offending property update (ore disable the @PreUpdate). ...

 
manual

Strings in JPQL and Criteria Queries

Explains string expressions in JPQL queries, including LIKE, LOCATE, LOWER, UPPER, TRIM, CONCAT and SUBSTRING. String values may appear in JPQL queries in various forms: as  string literals - e.g. 'abc' , ''. as parameters - when string values are assigned as arguments. as  path e ...

 
forum_thread

Indexing a field results in internal Exception

I have an application that I have been converting from JPA/MySQL to JDO/ObjectDB and I have hit a problem with indexing. An index on a String field is required to give good performance but if I add the @Index annotation to the field I eventually end up with an ObjectDB internal exception.  This is reproducible, as is the program running to completion (slowly) if I remove the @Index annotation.  Is there anything I can look for that might result in this exception? ... as is the program running to completion (slowly) if I remove the @Index annotation.  Is there anything I can look for that might ... in either of them, so you can stay with JPA and just remove the ORM metadata when switching to ObjectDB. ...

 
forum_thread

Apparent Lazy Loading issues.

Hi, Thanks for the quick investigation. That has indeed fixed that issue. However there appear to be two more. #1 2011-12-19 06:18 Hi, Thanks for the quick investigation. That has indeed fixed that issue. However there appear to be two ...