Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #32461 > unrolled thread
| Started by | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| First post | 2015-09-02 08:58 +0200 |
| Last post | 2015-09-03 00:49 -0400 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.java.programmer
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
| From | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| Date | 2015-09-02 08:58 +0200 |
| Subject | Can @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]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2015-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