Yes it does have an @id but I have a base entity that creates them automagically (Base64 representation of the current system time), so it is sort of like generated value type. My getters martial the data to the virtual field is retuned in the structure I expect and I guess you could do the same thing with setters if you wanted.
Chris -----Original Message----- From: Daryl Stultz [mailto:[email protected]] Sent: Thursday, 24 June 2010 10:59 PM To: [email protected] Subject: Re: Virtual Entity On Thu, Jun 24, 2010 at 8:33 AM, C N Davies <[email protected]> wrote: > I have virtual entity that has nothing but getters, if you do it his way > you > can use JPQL referring to the virtual fields and let OpenJPA do the work > for > you. > So your virtual entity has no @Id? Or you are using a bogus property as the id? Does "nothing but getters" imply read-only and JPA treats it differently? I actually imagined not putting getters or setters in it. -- Daryl Stultz _____________________________________ 6 Degrees Software and Consulting, Inc. http://www.6degrees.com http://www.opentempo.com mailto:[email protected]
