About XML

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

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

 
release

2.4.1

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

JSON serialization and __odbHidden members

Hi.. Building a REST API (Jersey-based one) I noticed that object object I serialize to JSON has a clone field with "__odbHidden" suffix, e.g.there's  "id" and "id__odbHidden" is also (unwantenly) present with the same value. In general, we can annotate fields to include/exclude them from JSON serialization, but since these fields are not declared in my classes, I have no idea how to tell marshaller to avoid them. ... Specialists in model-based UML, SysML, Enterprise Java, XML, and Drupal CMS web engineering. Dr Darren Kelly, BSc, PhD, ...

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

 
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

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

 
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

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

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