byte[] as primary key with Oracle

2019-08-20 Thread stefan
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

Re: @Externalizer does not work on persist?

2007-12-29 Thread Stefan Handschuh
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

OneToMany update issue

2009-04-11 Thread Stefan Zeller
(); 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

Re: OneToMany update issue

2009-04-12 Thread Stefan Zeller
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

Glassfishv3 + OpenJPA-2.0.0: Enhancer not working

2010-07-19 Thread Stefan Schilling
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;

Re: Glassfishv3 + OpenJPA-2.0.0: Enhancer not working

2010-07-20 Thread Stefan Schilling
=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