openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Schlaikjer <>
Subject Re: how to specify index / unique constraint on multiple columns of a container table?
Date Wed, 15 Oct 2008 17:02:20 GMT
Pinaki, thanks for the reply.

I've looked over the tests you'd mentioned. They do elucidate how to 
apply unique constraints on join tables via @JoinTable(uniqueConstraints 
= ...), but don't show how I might accomplish something similar with 
@ContainerTable. Here are relevant direct links:

I had thought that @ContainerTable was meant to be a corollary to 
@JoinTable, but @ContainerTable lacks a uniqueConstraints element.




Pinaki Poddar wrote:
>> Is it possible to specify a unique constraint over multiple columns within
> a container table?
> Yes.
> Please refer to the tests and domain classes of
> org.apache.openjpa.persistence.jdbc.unique package as example.

View raw message