12
I Use This!
Activity Not Available

News

Analyzed 8 months ago. based on code collected about 4 years ago.
Posted over 16 years ago
If I insert 5 objects of class A to an empty datastore it works. If I insert 5 objects of class B, it also works. But if I try to insert both the former and the latter, I get an exception (on the first insert of class B): ... [More] [code]org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted. at ... [Less]
Posted over 16 years ago
Hi, i tried to use the new datanucleus 1.0.0.m1 to enhance and validate the schema(maven2). With the jpox 1.2.2 both works fine.(enhance/schema-validate) but when i start this with the datanucleus classes i get the following error: ... [More] [datanucleus:schema-validate {execution: create-db}] [INFO] [ERROR] -------------------- [ERROR] Standard error from the JPOX tool ... [Less]
Posted over 16 years ago
hi, i tried to inlcude the datanucleus within the equinox environment which then should be used by another bundle( creating the PersistenceManagerFactory and so on.) The datanucleus budles are running as you can see below: 22 ACTIVE ... [More] org.datanucleus_1.0.0.m1 23 ACTIVE org.datanucleus.java5_1.0.0.m1 24 ACTIVE org.datanucleus.store.rdbms_1.0.0.m1 25 ... [Less]
Posted over 16 years ago
After reading Fowler's books, we prefer creating our own class named like "Money" to work with monetary types. It looks like (a simplified version): [code] public class Money implements Comparable { final private BigDecimal amount; ... [More] public BigDecimal getAmount() { return amount; } } [/code] So, it is definitely a "Value object", ... [Less]
Posted over 16 years ago
Hello All, All help is appreciated.......have been struggling implementing the scenario described below... I am using JPOX 1.2.2, JPOX-ENHANCER 1.2.2, JDO 2.1 API Reflecting my classes, given below are 3 sample classes. ... [More] //PersistenceCapable, NEW_TABLE class A { @PrimaryKey string id; @Key(types=java.lang.String.class, mappedBy="attrdefId") @Value(types=C.class) @Join ... [Less]
Posted over 16 years ago
We're using Guido's JDOQueryResultCollection in our expojo framework and it's working wonderfully. It gives us automatic query resource cleanups whenever the query result gets garbage collected - instead of when the PM gets closed (which we don't do ... [More] until the session ends). Consequently this has massively reduced the memory footprint of our applications. Guido, thanks for a great class. We ... [Less]
Posted over 16 years ago
Hi there, The 'getAutoIncrementStmt' in the Postgres adapter seems to be missing the schema name. The sequence is created in the correct schema though. In my case javax.jdo.mapping.Schema=trades JPOX is trying to execute: [code]SELECT currval('"POSITION_POSITION_ID_seq"')[/code] when it should be executing: [code]SELECT ...
Posted over 16 years ago
Hello All, I am getting the following error: javax.jdo.JDODataStoreException: Size request failed: SELECT COUNT(*) FROM "ENTITYIMPL_ATTRDEFMAP" WHERE "ENTITY_GLOBAL_ID_OID" = ? AND "STRING_KEY" IS NOT NULL at org.jpox.jdo.JPOXJDOHelper.getJDOExceptionForJPOXException(JPOXJDOHelper.java:289) at ...
Posted over 16 years ago
Ok, this one worries me a bit more. With a first transaction I insert 5 objects into an xml datastore. If I execute the same transaction a second time... the datastore now contains 10 objects... [b]2 identical copies of each object[/b]. The ... [More] problem is I had defined a primary key, which is obviously being violated. The code is the same as in the other post, with a for loop: [code] ... [Less]
Posted over 16 years ago
Ok, so I got to see my first xml persisted data... nice. Now I'd like to do some more serious issues. Working with XML datastores I expect to have some of the same problems I'd have with RDBMS datastores. The first one I thought of is the ... [More] datastore structure. I noticed that my objects are persisted as first-level XML elements, children of the ROOT element: [code] ... [Less]