I remember that there is an annotation in JPA or in sleep mode to tell hibernate to use the getId / setId method instead of the property (we will annotate our properties). Without this setting, getId leads to getting into the database and filling out all the fields of this object, which I donβt want. Does anyone know what an annotation is?
Example:
public void Project { @Id
Thus, ticket.getProject.getId () causes the database to hit in order to get the project when the identifier is already in the proxy object of the hibernate project. Annotations will fix what I remember.
thanks dean
Dean hiller
source share