Forums Register Login

[JPA] field or property annotation style..

+Pie Number of slices to send: Send
In jpa, you have the option to annotate the entity field, property or both (however either or is recommended).

What is everyone doing and why?
+Pie Number of slices to send: Send
The option is on the property or on the method. Either is fine. However, I would use the method version when you need to add code. Otherwise I stick with on the property.

Mark
please buy my thing and then I'll have more money:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 957 times.
Similar Threads
field or property based access
what is Field Access vs. Property Access in JPA ? please give example in detail
field or property based access
annotation on the property or access method?
AccessMode in JPA 2
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:14:32.