You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by "roger.keays" <ro...@ninthavenue.com.au> on 2008/03/06 03:29:20 UTC

Annotation for foreign key constraints on subclass join columns

Hi,

Does OpenJPA have an annotation to specify foreign key constraints for
subclass tables using JOINED inheritance? I'm aware of the mapping defaults
config options, but would like to put this info into annotations if
possible.

Thanks in advance,

Roger
-- 
View this message in context: http://www.nabble.com/Annotation-for-foreign-key-constraints-on-subclass-join-columns-tp15865187p15865187.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Re: Annotation for foreign key constraints on subclass join columns

Posted by "roger.keays" <ro...@ninthavenue.com.au>.


roger.keays wrote:
> 
> Does OpenJPA have an annotation to specify foreign key constraints for
> subclass tables using JOINED inheritance? I'm aware of the mapping
> defaults config options, but would like to put this info into annotations
> if possible.
> 

Okay, using @ForeignKey at the class level on subclasses does this. Nice :)

-- 
View this message in context: http://www.nabble.com/Annotation-for-foreign-key-constraints-on-subclass-join-columns-tp15865187p15865584.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.