Hi Sahoo,
you are right. I meant a *class* having an @Embeddable annotation.
Regards Michael
> Michael,
>
> Michael Bouschen wrote:
>> Hi Jielin,
>>
>> I'm wondering whether we have to distinguish @Embeddable and @Embedded
>> here. I think an entity class might have an @Embeddable annotation.
> What do you mean by an entity class might have an @Embeddable annotation
> in it? I hope you *didn't* mean something like this as it's not allowed:
> @Entity @Embeddable public class Foo {...}
>
> Thanks,
> Sahoo