users@glassfish.java.net

Re: JPA with database Views

From: <glassfish_at_javadesktop.org>
Date: Tue, 06 Nov 2007 15:44:53 PST

Any entity must have an id according to the JPA spec. This covers your case #1.
As the spec doesn't cover mpping two properties to the same column, the case #2 becomes a Hibernate specific approach. Did you ask this question on the Hibernate forum?

thanks,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

http://forums.java.net/jive/thread.jspa?messageID=244187