Skip to content
Advertisement

Tag: spring-boot

Spring JPA – Prepared Statement Queries?

I’m building a Spring REST server application and I’m doing some native queries to retrieve data from my database. From the teaching in school, they suggest to make all queries prepared statements, to stop the user entering harmful SQL into the input boxes. I’ve tried to do some research, but have not found a concrete answer. Does Spring use prepared

Hibernate Null Attribute Value using Camel-Case

Using Hibernate 5.3, Spring Boot 2.1, MySQL, that runs in Windows 10 OS. What I know I have verified on my phpmyadmin the case of the attributes. And as long the case were the same as the attributes of my Entity class you don’t have to explicitly define the column name in that Entity. And using @Column(name=”tableattribute”) is not required.

Advertisement