The NamedNativeQuery defined in Visit pojo is not giving correct results , it should give the last id of the record from my table but instead it is giving me 0 , also if i execute it directly using entityManager it is still giving me 0.
Running it on the database in console is giving me right results.
VisitRepositoryCustomImpl.java has the implementation of it .
The NamedNativeQuery defined in Visit pojo is not giving correct results , it should give the last id of the record from my table but instead it is giving me 0 , also if i execute it directly using entityManager it is still giving me 0. Running it on the database in console is giving me right results. VisitRepositoryCustomImpl.java has the implementation of it .
Path is https://github.com/BilalAM/self-erp/blob/master/visitorservice/src/main/java/self/erp/visitorservice/repositories/VisitRepositoryCustomImpl.java help......@MSaifAsif