About XML

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

Changing existing objects from Entity to Embedded

Hi, I realised that I have a mistake (from application logic point of view) in one of my JDO metadata files: ... See JavaDoc Reference Page... ) or by external XML metadata ( <class name="MyClass" embedded-only="true"> in ...

 
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

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.     -> ...

 
forum_thread

problem with lazy loading - unittest project attached

hi, i'm still testing objectdb together with spring-data-jpa. i made a test which should simulate 4 requests 1. save entity 2. read an existing entity, add onetomany relation 3. read an existing entity, add another onetomany relation 4. read entity, get relations. i have the feeling this is not the optional way to test this, because of the differnt transaction behavior. the test is not transactional, but the spring repository methods are. ... It seems that a repository is missing in the pom.xml file: 5/4/11 10:46:52 AM IDT: Missing artifact ... artifactory repository which is defined in my m2 settings.xml please add the spring milestone repo in the POM   ...

 
release

2.3.7

... 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

Join performance in Objectdb

select count(e) from Meta e, ImageNet i, Page p where e.idImage=i.id and e.idPage=p.id; So simple a command cause me half an hour and is running now! Each table has about 160K records. What formula can predict the time for such counting? TIA ... each field of idxxxx; 3, The Meta is parsed from a xml file like: ... <PIC> <PIC_URL></PIC_URL> ...

 
forum_thread

Problems Running ODB Explorer

When ODB is run in embedded mode (Eclipse), it is fine but the explorer throws the following exception:-   ... case you have to list more than one activation code in the xml configuration file. Technical support via this public forum is free ...