• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to declare an Embedded object as an element of a collection...

Mimi Tam
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry if I am asking the obvious. In a POJO class, I have a List (to be persisted to Database). The element object within this list is embeddable not the List itself.

Object CatCouBlock is what I want to embed. Here's my CatCouBlock class as Embeddable.

In class ABC, how can I annotate just CatCouBlock and not catCouList?

Any help will be greatly appreciated.

my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!