About Id

forum_thread

Using multiple databases

Is it possible for an ObjectDB PersistenceManger/EntityManager to connect to more than one database at a time? Also, can objects in one database reference objects in another database (e.g. through globally unique identifiers)? #1 2011-08-25 10:11 Is it possible for an ObjectDB PersistenceManger/EntityManager to connect to more than one database at a time?&nb ...

 
forum_thread

@PrePersist Implementation

Hi Please help me.I have requirement like In my project having arround 100 pojos .I have used @EntityListener and @prePersist annotaions to invoke my action class .. But problem is how can i get oldvalue and new value of current form of pojo in side my @entity Listener Action class. code snipt ===== Action class ======= ... "=========@PrePersist Annotation is called on iptAuditLog id: Before Saving Record into the Entity MAnager.==========" ) ; ...

 
forum_thread

Handling deleted references

Hi support team, I have a problem when using DELETE query to delete Entity instances. We use the following hierarchy: ... to "null" but instead I get an object which has the same ID, all default initial values and no version. To simplify the use case I ...

 
forum_thread

Using aliases in WHERE clause

Hi, I'm trying to run query : SELECT DISTINCT ppi.inquiries AS i FROM ProjectPartInfo ppi WHERE i.status IS NOT NULL Unfortunately, 'i' alias doesn't work in WHERE clause : Query Execution Error ===================== Unexpected query token 'i' SELECT DISTINCT ppi.inquiries AS i FROM ProjectPartInfo ppi WHERE  ==> i <== .status IS NOT NULL   ... AS i FROM ProjectPartInfo ppi ORDER BY i . id   Is this a bug or should I avoid using aliases like ...

 
forum_thread

JPQL keyword in entity - what to do?

Hi, I have a problem with entity that is using one of JPQL keywords as one of the fields. It's a 'type' field. When I try to build a query that looks for example like this: select new ResultData(p.type.name, count(p.id)) from Product as p group by p.type.name I got this exception: ... ( p . type . name , count ( p . id ) ) FROM Product AS p GROUP BY p . type . ... new pl.hplxtool.model.ResultData(p.type.name, count(p.id)) " + "from Product as p group by p.type.name" , ResultData. ...

 
forum_thread

Low performance when getting grove roots

Hi, I have a grove-like structure of objects, every objects referencing its parent. Root objects have null as the value of this parent reference. To find the roots I execute a query. If the number of objects in the tree is significant, this query takes almost forever, it seems ObjectDB loads all objects on the DB to test their parent field value. Id there a way to force ObjectDB to create an index for this field? Regards, Vladimir ... on the DB to test their parent field value. Id there a way to force ObjectDB to create an index for this field? ...

 
forum_thread

DB reading fails in debug mode in Eclipse

Hello, I got an unpleasant bug which turned into a serious issue. Using ObjectDB 2.6.9.b08 on Linux. Here is the structure (JDO metadata) of 3 classes which I am storing as values in a HashMap of another entity in the DB. #1 2017-11-30 15:07 Hello, I got an unpleasant bug which turned into a serious issue. Using ObjectDB 2.6.9.b08 on Linux. ...

 
api-jdo

unpinAll(oids)

Unpin the parameter instance from the second-level cache.(Method of javax.jdo.datastore.DataStoreCache)

 
forum_thread

How to creat a Query with Sql which returns a List<Mark> marks

How can i get out of the db my Athlete Objekt his list<Mark> marks collection with a createQuery Sql-Statement. the Mark and Athlete Object do not really have a primary or secondary key together, the list mark is just stored in the athletes object, not as an embeddable but as an entity. ... oldMark.getId()); but somehow the oldMark has no generated ID so i try know to go over the athlete. im in a hurry because we have to get ... ( "SELECT m FROM Athlete a, Mark m where a.id=" + oldAthlete. getId ( ) , Mark. class ) ; ...

 
forum_thread

Spring 2.5 LocalContainerEntityManagerFactoryBean, no getSharedCacheMode()

I'm trying to setup Spring + JPA + ObjectDb in my test environment and having trouble with the following: <bean id="EnvDMSEntityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> <property name="persistenceUnitName" value="envService"/> <property name="persistenceXmlLocation" value="com/awarepoint/persistence.xml"/> </bean> Here is the stack trace I get: ... having trouble with the following: <bean id = "EnvDMSEntityManagerFactory" class = ...