About in

forum_thread

ObjectDB Enhancer Tool in Java 9

I am migrating to Java 9 and have encountered some issues, which I am sure will eventually be addressed by a Java 9 compatible ObjectDB future release, but while waiting for that release, perhaps you could give some advice for my current issues. Firstly, I created my own ObjectDB module.  I try to run com.objectdb.Enhancer from that module, but ObjectDB gives the error below.  My guess is the error is because ObjectDB is trying to detect its objectdb.home location by looking at its objectdb.jar location, which is not valid in a Java module environment. ... looking at its objectdb.jar location, which is not valid in a Java module environment. Example command: java - ... ( Enhancer. java : 32 ) Exception in thread "main" java. lang . ExceptionInInitializerError at com. ...

 
manual

Index Definition

Describes how to define indexes in JPA entity classes and explains how indexes are used in JPQL queries.... without indexes requires iteration over entity objects in the database one by one. This may take a significant amount of time if ... be executed quickly. Index management introduces overhead in terms of maintenance time and storage space, so deciding which fields to ...

 
forum_thread

Path in tomcat

Hi, If I put the .jar into /opt/Tomcat/lib/, then where the .conf should be in? And the .odb? When I debug the Eclipse web project, I export all things into a .war file. Then I use Tomcat's web deploy tool by the .war file. However, if I put objectdb into the project's /WEB-INF/, I may lost the db when I use Undeploy tool. TIA ... .jar into /opt/Tomcat/lib/, then where the .conf should be in? And the .odb? When I debug the Eclipse web project, I ... .jar into /opt/Tomcat/lib/, then where the .conf should be in? And the .odb? See explanations about ObjectDB home and ...

 
manual

JPA Named Queries

Explains how to define and how to run JPA named queries.... literals dynamically into the query string and results in more efficient queries. This page covers the following topics: ... JPA annotation Specifies a static, named query in the Java Persistence query language. See JavaDoc Reference Page... ...

 
forum_thread

How to open a running db in ObjectDB Explorer?

Hi! I've just discovered that I can't see the content of a database while it's in use. Is there any way in which I could do that? It's not nice at all to close the application, copy the db in another location, start the application then finally I could explore my data, but it will be just a copy of the data, not the live information. ... I can't see the content of a database while it's in use. Is there any way in which I could do that? It's not nice at all to close the application, ...

 
forum_thread

Best practice: Database update/migration of embedded databases in products

Hello Support, what experience do you have for data migration within a product? An example: There are three versions of a product (v1.0; v1.1, v2.0). In each version, the entities have been modified. Attributes added, removed and renamed. If attributes were removed, then only because the data is now held otherwise. ... are three versions of a product (v1.0; v1.1, v2.0). In each version, the entities have been modified. Attributes added, removed and ... is now held otherwise. The product store user data in the ObjectDB-Database. Example: V1.0: EntityPerson{ String ...

 
forum_thread

composite index not used in query

we defined a composite index for class Action: @Index(name="ssst",members={"startDate","state","subType","type"}) and an index for the OneToMany @OneToMany(fetch=FetchType.LAZY) @Index  public List<ObjectNode> objectsInCharge = new ArrayList<ObjectNode>(); on running a query like ... ) .   [ Step 1c ] Retrieve fields in Action ( a ) instances.   [ Step 1d ] ... Iterate over all the instances ( a1 ) in a.objectsInCharge.   [ Step 2b ] Retrieve fields in ...

 
forum_thread

Help with JPA2 Criteria and conditional operator grouping

Hi,   I'm getting a little trouble performing a query as per the way I had it set up on eclipselink. Essentially, the query I'm trying to generate is: SELECT $1 FROM Company $1 WHERE (($1.companyId=:p1) AND ($1.conditionOne=true)) AND (($1.conditionTwo=false) OR ($1.conditionThree=false))   From the JPA2 criteria: ... You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome). Use ctrl + right click to open the browser context ...

 
forum_thread

Is 2 level cache in use?

Hi, Is there any way to check, if 2 level cache is in use? Right now I've done two things: 1. objectdb.conf with cache size is placed in WEB-INF directory of my web application. 2. persistence.xml was modified with: ... Hi, Is there any way to check, if 2 level cache is in use? Right now I've done two things: 1. objectdb.conf with cache size is placed in WEB-INF directory of my web application. 2. persistence.xml was ...

 
forum_thread

lockfiles in client/server mode

i have an objectdb server running on localhost as user "objectdb", spawned like so: java -server -cp /usr/local/share/objectdb/objectdb.jar: com.objectdb.Server -conf /etc/objectdb/objectdb.conf start it has naturally created and taken ownership of /tmp/ObjectDB. ... reason the client is attempting to create lockfiles in /tmp/ObjectDB. my account and the tomcat account naturally cannot do this on ... server has done it. a persistence unit is defined in src/main/webapp/META-INF/persistence.xml with a jdbc URL that looks to me as ...