سؤال

I have a class that has JPA annotations.. @Embedded, @AttributesOverride, etc. Can I use this object as regular POJO / VO? What happens to these annotations then? Are they simply ignored? Or they will still be used / active?

هل كانت مفيدة؟

المحلول

You can safely use these POJOs as you want. Just ignore the annotations. They are needed only for persistence of your entities.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top