Pinaki Poddar wrote:
Hi,
  The result should return (Magazine, Publisher) pairs.

Please post a) the relevant mapping declarations of Magazine and Publisher
  b) the SQL generated by OpenJPA

  for further analysis.

It was a bug in 1.1.0. Just tested with 1.2.0 and it works fine.

Output with 1.1.0 (erratic, returns two Publishers in a row)

AB press, AB press,
CD press, AB press,
EF press, AB press,
null, CD press,
null, EF press,
Results: 5


Output with 1.2.0 (as expected, returns Magazine and Publisher):

alpha, AB press,
beta, AB press,
gamma, AB press,
foobar, CD press,
barfoo, EF press,
Results: 5

So, if there are plans to maintain a 1.1.x branch, tests should be copied over there, too.

Regards,
Ognjen

Reply via email to