THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
Excerpt | ||
---|---|---|
| ||
Embeddable samples |
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
Collections Embeddables
Relationships Embeddables
Nested Embeddables
In the code snippet below, there is a User Entity which has an embedded ContactInfo. ContactInfo contains two other embeddeded embeddables, Address and Phone.
...
Code Block | ||||
---|---|---|---|---|
| ||||
@Entity public class User { @Id private int id; @Embedded ContactInfo contactInfo; public User(){ } //... } |
Collections Embeddables
...