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


Groups > comp.lang.java.programmer > #32461 > unrolled thread

Can @embedded be notnullable

Started byCecil Westerhof <Cecil@decebal.nl>
First post2015-09-02 08:58 +0200
Last post2015-09-03 00:49 -0400
Articles 2 — 2 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  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

#32461 — Can @embedded be notnullable

FromCecil Westerhof <Cecil@decebal.nl>
Date2015-09-02 08:58 +0200
SubjectCan @embedded be notnullable
Message-ID<87egihtihu.fsf@Equus.decebal.nl>
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?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

[toc] | [next] | [standalone]


#32484

FromJeff Higgins <jeff@invalid.invalid>
Date2015-09-03 00:49 -0400
Message-ID<ms8jgb$o6$1@dont-email.me>
In reply to#32461
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.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web