What is meaning of Plain Old Java Object (POJO)?

前端 未结 8 1509
别跟我提以往
别跟我提以往 2020-12-12 15:43

What does the term Plain Old Java Object (POJO) mean? I couldn\'t find anything explanatory enough.

POJO\'s Wikipedia page says that POJO is an ordinary Jav

8条回答
  •  一整个雨季
    2020-12-12 16:23

    The whole point of a POJO is simplicity and you appear to be assuming its something more complicated than it appears.

    If a library supports a POJO, it implies an object of any class is acceptible. It doesn't mean the POJO cannot have annotations/interface or that they won't be used if they are there, but it is not a requirement.

    IMHO The wiki-page is fairly clear. It doesn't say a POJO cannot have annotations/interfaces.

提交回复
热议问题