I participate in bootspring.
findByDate(int date); used to work until I moved int Date to inner class.
Now I can save new records, but I can not restore them byDate
What do i need to change?
@Transactional public interface ExpirationDAO extends JpaRepository<ExpirationDTO, Long> { public ExpirationDTO findByDate(int date); }
and
@Embeddable public static class IdKey implements Serializable{ @NotNull int date; @ManyToOne ProductDTO product; public IdKey(){ }
throws this exception:
org.springframework.data.mapping.PropertyReferenceException: No property date found for type ExpirationDTO!
source share