i\'m trying to figure wether there\'s a difference betweeen anotating (let\'s take @id as an example) a getter method and the concerned field directly , in case i annotate
JPA allows for two types of access to the data of a persistent class. Field access which means that it maps the instance variables (fields) to columns in the database and Property access which means that is uses the getters to determine the property names that will be mapped to the db. What access type it will be used is decided by where you put the @Id annotation (on the id field or the getId() method).