There are some Entities with composite Primary Keys and these entities when exposed are having incorrect Links having full qualified name of classes in URL inside _links
Also clicking on links gives such errors -
org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type java.lang.String to type com.core.connection.domains.UserFriendshipId
I have XML configured Spring Repository with jpa:repositories enabled and Respository extending from JpaRepository
Can I make Repository implement org.springframework.core.convert.converter.Converter to handle this. Currently getting links as below -
_links: {
userByFriendshipId: {
href: "http://localhost:8080/api/userFriendships/com.core.connection.domains.UserFriendshipId@5b10/userByFriendId"
}
in xml config , I have jpa:repositories enabled and @RestResource enabled inside Repositories
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…