Changed primitive long to Long type - to bypass an issue with Spring data JPA treating long value 0 as a new entity