I am making a search query for a integer. This is the NamedQuery in the class Factuur:
@NamedQueries({
@NamedQuery(name = "getFactuurs", query = "SELECT f FROM Factuur f WHERE "
+ "f.periode LIKE :periode AND "
+ "f.carTracker.kenteken LIKE :carTrackerKenteken")
})
So the 'periode' is an Integer in the class Factuur, I have tried to do it this way:
+ "f.periode = :periode AND "
I don't get an Exception, I just get nothing from the database, while there should be...