On Tue, Jun 30, 2009 at 9:29 AM, Daryl Stultz <[email protected]> wrote:

>
> Does anybody have an example they can share of a unique nullable field? It
> doesn't have to be a foreign key, I'm having trouble with a String field as
> well.
>
>
>
When I define my field as "unique = true, nullable = true" and then run the
mapping tool to build the DDL it generates the column as "not null". It does
seem to be that null is incompatible with unique. Is this an OpenJPA thing
or a JPA spec?


-- 
Daryl Stultz
_____________________________________
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
mailto:[email protected]

Reply via email to