Hibernate Annotations - Which is better, field or property access?

后端 未结 25 1541
说谎
说谎 2020-11-22 15:02

This question is somewhat related to Hibernate Annotation Placement Question.

But I want to know which is better? Access via properties or access vi

25条回答
  •  误落风尘
    2020-11-22 15:44

    You should choose access via fields over access via properties. With fields you can limit the data sent and received. With via properties you can send more data as a host, and set G denominations (which factory set most of the properties in total).

提交回复
热议问题