BilalAM / self-erp

Collection of small microservices building up a small erp with JavaFX and Springboot
3 stars 1 forks source link

NamedNative query not giving correct results. HELP!! #3

Closed BilalAM closed 5 years ago

BilalAM commented 5 years ago

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

BilalAM commented 5 years ago

Fixed in c5c7e3c