openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Furmanczuk <afurmanc...@knowtrek.com>
Subject Cannot join on constant field - more specific
Date Thu, 31 Jan 2013 17:51:14 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

still having problems with my join on constant, however found the bug
in my merge() usage.


Problem was I loaded Objects D in class A and wanted to persist in B.

In class A and B I had the statement:

emf = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME);
em = emf.createEntityManager();

This was causing in openjpa the error. (though not in eclipselink :) )

Passing reference to Entitymanager from Class A to B solved this problem.

Greetings,

Adam
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlEKrxIACgkQefEEI87R1DeYwgCghIQVQwihpeDLkXzS0chLVf4k
a8MAoJrpCNDaB8cv7qEbh5xBpdMnGJTO
=7waa
-----END PGP SIGNATURE-----

Mime
View raw message