Skip to content

Commit

Permalink
Update EnergyMeterDetailsRepository.java
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentdj authored Nov 7, 2024
1 parent 32e235a commit 3bafa53
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public class EnergyMeterDetailsRepository {
private EntityManager entityManager;

public List<EnergyMeter> findByMeterDetails(String searchQuery) {
// Kwetsbare query, gevoelig voor SQL-injectie
String query = "SELECT * FROM energy_meters WHERE id = '" + searchQuery + "'";
return entityManager.createNativeQuery(query, EnergyMeter.class).getResultList();
}
Expand Down

0 comments on commit 3bafa53

Please sign in to comment.