Plain old Java object: Difference between revisions

Content deleted Content added
Monkbot (talk | contribs)
m top: Task 16: replaced (2×) / removed (0×) deprecated |dead-url= and |deadurl= with |url-status=;
changed "if the object (actually class) <b>was</b> a POJO before any annotations were added" to "if the object (actually class) <b>were</b> a POJO before any annotations were added" because it is subjunctive mood (ref: <ref>https://en.wikipedia.org/wiki/Subjunctive_mood</ref>).
Line 18:
#Contain prespecified [[Java annotation|annotations]], as in<source lang="java">@javax.persistence.Entity public class Baz { ...</source>
However, due to technical difficulties and other reasons, many software products or frameworks described as POJO-compliant actually still require the use of prespecified annotations for features such as persistence to work properly.
The idea is that if the object (actually class) waswere a POJO before any annotations were added, and would return to POJO status if the annotations are removed then it can still be considered a POJO. Then the basic object remains a POJO in that it has no special characteristics (such as an implemented interface) that makes it a "Specialized Java Object" (SJO or (sic) SoJO).
 
==Contextual variations==