I'm trying to use a very simple key/value table, where both the key and the
value are byte arrays. The key is limited to 64 bytes length, the value can
be a lot bigger (I'm using a blob for that).
I've read documentation and googled for two days now but I haven't found a
working solution that
Hello,
The constructor MyObject(java.lang.String) exists and is performed
correctly on fetch.
the root cause is:
Caused by: java.lang.ClassCastException: some.package.MyObject cannot
be cast to java.lang.String
at
();
a6.setB(b5);
dataManager.getEm().persist(a6);
dataManager.getEm().flush();
dataManager.getEm().getTransaction().commit();
return null;
}
How can I achieve that the OneToMany rel would be also updated?
Thanks and greetings,
Stefan
PS: I use openJPA 1.2.0 and new
Hi Paul,
thanks for the fast help. Now the application is responsible for
consistency and it works. Well, I should read the spec, some time.
Greetings,
Stefan
Paul Copeland schrieb:
Hi Stefan - I think your A.SetB(B) method must call B.add(A)
From section 2.1.7 in JPA Specification - Note
Hello,
I have a Glassfishv3 running here and *need* to use OpenJPA-2.0.0.
I'm currently having two different setups in our persistence.xml; here's the
working one:
persistence xmlns=http://java.sun.com/xml/ns/persistence;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
=INFO, SQL=TRACE/
/properties
/persistence-unit
/persistence
emf is usable, emfTmp stays null; but the Enhancer is working.
I'll report this one back to the Glassfish forum as well.
Thanks.
Stefan
PS: yes, I know, OpenJPA delivers those 3 geronimo libraries as well, but these
should