About xml

forum_thread

Queries are slow on a large database

Hi, I have a 12GB database with 787603 entries. It is much larger than usual and there are performances issues. I am doing small queries and they take much longer than I expect, i.e.: Get the total number of entries Get 25 consecutive entries (i.e. 0-25) Get one specific entry On average each query needs 4 to 5 minutes to return a result. I have been adviced to use indexes but they are already used through the JDO Metadata file. For instance I use this class: ... is should work. If the the new enhanced class and the XML metadata are in the correct location in the classpath it should also work, ...

 
release

2.4.0

... support of @Column(unique="true") and equivalent ORM XML ( issue #79 ). Fixed @PrePersist on merge to be called ... parameter ( issue @45 ). Fixed pom.xml files in the Maven tutorials to use Java 1.5 / 1.6. Version ...

 
forum_thread

Type ... is not defined as an entity (@Entity is missing) (error 302)

Hello, I am using ObjectDB 2.2.8_08 with eclipse 3.6 and Groovy objects. I am attempting to persist an instance of CultureRqst in the project com.epimss.lab by using a Connection class imported from the project com.epimss.admin.   I can access the database OK, but attempting to persist the CultureRqst leads to the following exceptions: ... you may try declaring persistence capable classes using XML instead of using annotations. ObjectDB Support ...

 
manual

Database Explorer

Explains how to run and use the ObjectDB object database Explorer to view and manage Java/JPA/JDO objects visually.... field specifies a path to locate persistent classes and XML metadata. Setting this field is not mandatory because you can browse and ...

 
manual

[ODB1] Chapter 8 - ObjectDB Server

An ObjectDB server can manage one or more databases. Databases that are managed by a server can be accessed by multiple processes simultaneously. In addition, the server supports accessing these databases from remote machines by TCP/IP. More details about client server mode vs. embedded database mode are discussed in Section 1.2.... with a default server configuration file named default.xml . It is recommended that you use this file as a template for constructing ... > java com.objectdb.Server -conf config.xml start If you name your configuration file server.xml , you do not ...

 
forum_thread

IN expression in a Criteria Query

Hello, I am trying to migrate my Spring project from Hibernate to ObjectDB. On ObjectDB page, it is written that ObjectDB is 100% compatible with JPA. However, I have problem with this JPQL query: SELECT e FROM Employee e WHERE e.present = false AND NOT EXISTS (SELECT c FROM Computer c WHERE c.employeeEntity = e) ORDER BY e.name with Hibernate, there was no problem with this query, but ObjectDB throws exception: ... 11:20 Bellow is the XML for criteria query from logs: <token name = "QUERY" ...

 
forum_thread

Null enums and IS (NOT) NULL: NullPointerException

Hello. I'm getting NullPointerException when adding %enum field% IS (NOT) NULL or == (!=) NULL in WHERE clause. The same exception using CriteriaQuery. ... java.lang.Thread.run(Thread.java:744) ]] <?xml version = "1.0" encoding = "UTF-8" ?> <!DOCTYPE html ...

 
forum_thread

Connection performace after upgrade to objectdb 2

Hi, I have a problem with objectdb 2 when I tried to get the PersistenceManagerFactory and PersistenceManager : In objectdb 1 : PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory(getProperties(physicalPath, objectName), JDOHelper.class.getClassLoader()); takes only 3ms PersistenceManager pm = pmf.getPersistenceManager(); takes 40ms However, with objectdb 2, the same instructions take respectively : 257ms and 238ms which is very expensive. ... Maybe new features of ObjectDB 2 (JPA XML metadata, annotations for JPA/JDO, etc.) affect initialization performance ...

 
issue

query.getResultList() throws ClassCastException

I modified the example code to include an index on the Point class like so:     @Index(members={"x","y"}) Then when I run the following query:     TypedQuery<Point> query = em.createQuery("SELECT p FROM Point p where p.x <= :x and p.y >= :y",         Point.class); I get the exception at the end.  I do not get an exception if I: ... I had made changes to use a configuration XML, and was running with agent="true" on JDK 6, so hopefully that's good ...

 
forum_thread

Dependency from enhanced classes to the objectDB library

Hello, we have a Question to the dependency from enhanced classes (required for license) to the objectDB library.... the persistence unit is not found (defined in persistence.xml) Do you have any idea how you can help us?   ... Exception. 3) Run the enhanced –map.xml, of project com.btc.ep.dal.impl, as Ant Build.     -> ...