0

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?

Kevin Rave
  • 13,876
  • 35
  • 109
  • 173

1 Answers1

1

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

WeMakeSoftware
  • 9,039
  • 5
  • 34
  • 52
  • So does that mean, if its called from EntityManager, they are treated as Entity Objects, otherwise, just pojos? – Kevin Rave Jun 02 '13 at 00:00