does JPA use JavaBeans BeanInfo information? -


according jpa 2.1 spec:

it required entity class follow method signature conventions javabeans read/write properties (as defined javabeans introspector class) persistent properties when property access used.

in case, every persistent property property of type t of entity, there getter method, getproperty, , setter method setproperty.

does imply methods must always named getproperty , setproperty (per design pattern "convention" in §8.3.1 of javabeans spec 1.0.1, "[i]f don't find explicit beaninfo on class"); or beaninfo class provided direct jpa implementation different method (per full description of introspector class in spec)?

although i'm curious how hibernate or other jpa implementations implement this, i'm instead asking implementation jpa spec requires.

the methods must named per java beans contract ... getxxx (or isxxx), setxxx. there no beaninfo hook used jpa implementation know of


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -