About ORDER BY

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? ... 2.2.8_06] Unexpected exception (Error 990) Generated by Java HotSpot(TM) 64-Bit Server VM 1.6.0_20 (on Linux ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph code words ... names) with the code style (can be applied by ctrl + D). Long stack traces (> 50 lines) and complex ...

 
forum_thread

ObjectDB with JRebel: copious 'Not Enhanced:' errors with EJBs

JRebel 6.5.1 ObjectDB-2.6.9_06 Glassfish4.1.1 (or Payara41 [163 full]] I appreciate that you are not responsible for compatibility with JRebel, but you might be able to provide some insight or feedback. Reported also to Zeroturnaround for JRebel here. When using JRebel I am getting copious server log output for nearly every @EJB on startup. Typical message is like: ... java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: ... issues? You may suppress these warnings by reducing logging level of the enhancer agent (in objectdb.conf ): ... The reported warning has been fixed by the ZeroTurnaround JRebel team. You wrote: > but ...

 
forum_thread

New to Product & Having An Issue

Greetings ObjectDB Users! I'm new to the product, and I've setup a simple test after reading the tutorial, and I'm running into some issues with queries, specifically querying by primary key.   I have a domain object class Called Department, which has a member of type DomainId.  DomainId has two member fields:  String accountId and String objectId.  The following code shows these two classes.... into some issues with queries, specifically querying by primary key.   I have a domain object class Called Department, ... (entity classes and embeddable classes) can be compared by using the equality operators (=, <>, == , != ). Note that ...

 
forum_thread

Unable to execute update query

Hello! I'm trying to do an update query via the explorer to set a new field value for around 400k objects. UPDATE Position p SET p.originalData = null This exception raises when I try to do it: ... by: com.objectdb.o.UserException: Failed to read from file ... by: com.objectdb.o.UserException: Failed to read from file ... of the cases. If I limit the amount of positons to update by specifying an id ranges it works. ...

 
forum_thread

Storing Images

What is the best way to store images? As external files? In the database as blobs? Are blobs supported?... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph code words ... names) with the code style (can be applied by ctrl + D). Long stack traces (> 50 lines) and complex ...

 
forum_thread

@Convert is not supported?

Does objectdb jpa implementation support @Convert annotation? (convertion of property before persistance and vice versa)   for example @Convert(converter = MyConverter.class) private Date date;   I've wrote a test on this, and seems that my Converters methods are not executed at all (like annotation doesent exist) ... same currency object..." so this could be achieved by JPA lifecycle events. ObjectDB Support ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph code words ...

 
forum_thread

Connecting to a remote objectdb server

I am trying to configure my application in a client-server objectdb setup via tcp/ip. So I first made sure that the remote objectdb server is running using telnet from my local.  $ telnet db.mydomain.com 6136 (worked fine, is able to connect...) My db was configured below: <server>   <connection port="6136" max="100" />   <data path="objectdb://db.mydomain.com/db" /> </server> ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph code words ... names) with the code style (can be applied by ctrl + D). Long stack traces (> 50 lines) and complex ...

 
forum_thread

One transaction or two?

If I have a large number of objects to delete and then add to a PersistenceManager is it more efficient to do everything in one transaction or two? Currently my code looks like this: ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph code words ... names) with the code style (can be applied by ctrl + D). Long stack traces (> 50 lines) and complex ...

 
forum_thread

@ElementCollection query returning extra result per element in collection

Hi, ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph code words ... names) with the code style (can be applied by ctrl + D). Long stack traces (> 50 lines) and complex ...

 
forum_thread

Criteria Query results in a NoResultException instead of returning object

When I run the following code    ... java.lang.Thread.run(Thread.java:662) Caused by: com.objectdb.o._NoResultException: No matching results for a unique ... returns "name" but this cannot be determined by the code you posted. In this is the case - could you please post a complete ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph code words ...