Krazim00da
Krazim00da

Reputation: 403

Is it necessary to use @Embedded for Spring?

I have models with nested entity inside them. Is it necessary to write annotation @Embedded and @Embedeable or it's not necessary in actual Spring version?

Upvotes: 0

Views: 208

Answers (1)

Daniel Jacob
Daniel Jacob

Reputation: 1546

Yes you still need to use these in Spring, since these are JPA annotations and are necessary when you are embedding a given type within another entity.

Upvotes: 1

Related Questions