openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daryl Stultz <da...@6degrees.com>
Subject Re: Virtual Entity
Date Tue, 29 Jun 2010 16:03:26 GMT
On Tue, Jun 29, 2010 at 8:52 AM, Daryl Stultz <daryl@6degrees.com> 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.
http://www.6degrees.com
http://www.opentempo.com
mailto:daryl.stultz@opentempo.com

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