users@glassfish.java.net

Re: how to join with discriminator column?

From: <glassfish_at_javadesktop.org>
Date: Thu, 04 Sep 2008 10:27:42 PDT

hello,

What is the relationship between the objects and the tables involved? Have you tried using the column in a 1:1 mapping to the entity mapping the other table? If so, all you should need to do is make sure that the 1:1 is set to be insertable=false, writable=false so that the class type actually sets the column..

Best Regards,
Chris
[Message sent by forum member 'chris_delahunt' (chris_delahunt)]

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