Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: Can @embedded be notnullable Date: Thu, 03 Sep 2015 00:49:38 -0400 Organization: A noiseless patient Spider Lines: 14 Message-ID: References: <87egihtihu.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 3 Sep 2015 04:49:15 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="a78aad8b483612fbf45d18e918df0cca"; logging-data="774"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FVMOdmPBMTqNJU4CRswygqOFKLG+TXcg=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 In-Reply-To: <87egihtihu.fsf@Equus.decebal.nl> Cancel-Lock: sha1:ozMApo1+30aWVzOphbNVXR0foyU= Xref: csiph.com comp.lang.java.programmer:32484 On 09/02/2015 02:58 AM, Cecil Westerhof wrote: > I am busy getting grips of JPA. When defining @Column you can use: > nullable = false > > But it looks like you can not use this with @Embedded. Am I > overlooking something? > A quick look at the Embeddable javadoc shows no optional or required elements. The first web hit for jpa+@Embeddable: suggests some extensions around the issue.