openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daryl Stultz <>
Subject Re: Virtual Entity
Date Tue, 29 Jun 2010 16:03:26 GMT
On Tue, Jun 29, 2010 at 8:52 AM, Daryl Stultz <> wrote:

> It appears using @JoinTable with @ManyToOne is a JPA 2.0 feature. I'm using
> OpenJPA 1.2.1 so that explains it.

I was able to get my virtual entity working against a view (postgresql)
without a problem. The "bogus primary key" is not unique, but I'm using it
for querying only.

Also, I was able to relate A:E from E to A as @OneToMany with @JoinTable
(although I wanted to go A to E, but no big deal, it works). Thanks for the
suggestion, Matthew.

Daryl Stultz
6 Degrees Software and Consulting, Inc.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message