openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Furmanczuk <afurmanc...@knowtrek.com>
Subject Re: Cannot join on constant field
Date Fri, 22 Feb 2013 14:42:59 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Rick,

thank you much for your help. I have followed the Instruction in 1979
[1]. As I understand new quoting rule this looks exactly like the
manual [2] suggests for nonstandard-joins:

@JoinColumn(name="T2.PK2" referencedColumnName="'a'")

No error is thrown, but that particular join has no effect at all. As
if the line was totally missing. In the above join example [2] I get
not only values 'a' from T2.Pk2, but also 'b', 'c', etc.

As comments suggest, people still have issue with that. There is even
a patch submitted at issue 1979. I will try to comprehend the patch
and compare with the current AnnotationPersistenceMappingParser.

Greetings,

Adam


[1] https://issues.apache.org/jira/browse/OPENJPA-1979
[2]
http://people.apache.org/~mikedd/nightly.builds/apache-openjpa-2.3.0-SNAPSHOT/docs/docbook/manual/ref_guide_mapping_notes_nonstdjoins.html


> Take a at OPENJPA-1979 and see if that helps shed some light on
> what is going on?


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

iEYEARECAAYFAlEng/MACgkQefEEI87R1DdnqwCdHYzHVaJJ4nGHODQi7+TXgjBW
FTQAn11TzQIjmz3BDyR2uqY7iy8SRg5a
=Bg3J
-----END PGP SIGNATURE-----

Mime
View raw message