openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <>
Subject Re: OpenJPA - two-sided relation between objects Issue
Date Thu, 14 Aug 2008 21:16:18 GMT

  Recent SVN commit 686037 includes a change that allows usage of
@ForeignKey(implicit=true) on a @Basic field that holds a primitive value
but implies a relation to a persistent entity.

So you can do something like this in

	private Long addressId;

Note that  @ForeignKey(implicit=true) prohibits setting any other property
on that annotation.

If you have access to SVN repository you can also see a set of JUnit Test
Cases to demonstrate and verify its usage.
View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message