vendredi 17 avril 2015

Does Neo4j SDN use the getters when saving to Neo4j?

I have a person object which has a property username.


The setter looks like this.



public void setUsername (String username) {
this.username = username;
}


and the getter looks like



public void getUsername () {
return StringUtils.capitalize (username);
}


However, when I try to use my repository to get the person with username "Foo" which was set as setUsername ("foo") I have to use the capitalized version in personRepo.findByUsername("Foo").


Does SDN use the getUsername () when saving objects to database. The username object is of course private to the class.


Aucun commentaire:

Enregistrer un commentaire