I am trying to find information about Spring Security JPA and if methods like .save()
are protected from sql injection.
For instance I have object Customer.
that I want to persist to my database.
I am using CustomerRepository Spring implementation to operate on that entity.
Customer's constructor is using parameters from the user. When everything is staged I am invoking .save()
. Is this safe against sql injection or Should I do the check up first?