Quantcast
Channel: Does it work to put Java XML and persistance annotations on the same bean? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Sotirios Delimanolis for Does it work to put Java XML and...

Annotations are just meta data. On their own, they don't do anything to your code. You need to use reflection to make use of them. So, yes, you could put any number of annotations on your classes and...

View Article



Does it work to put Java XML and persistance annotations on the same bean?

I haven't worked an implementation yet but I'm wondering if it's okay to put XML annotations as well as persistance annotations onto the same bean. The reason I'm asking is because I want to read in...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images