Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #32484

Re: Can @embedded be notnullable

Path csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Jeff Higgins <jeff@invalid.invalid>
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 <ms8jgb$o6$1@dont-email.me> (permalink)
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

Show key headers only | View raw


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:
<https://en.wikibooks.org/wiki/Java_Persistence/Embeddables#Nulls>
suggests some extensions around the issue.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Can @embedded be notnullable Cecil Westerhof <Cecil@decebal.nl> - 2015-09-02 08:58 +0200
  Re: Can @embedded be notnullable Jeff Higgins <jeff@invalid.invalid> - 2015-09-03 00:49 -0400

csiph-web