When i try to navigat to an endpoint i get tho following error
Type definition error: [simple type, class org.hibernate.proxy.pojo.bytebuddy.ByteBuddy
I came across this error while doing a tutorial with spring repository. It turned out that the error was made at the stage of building the service class for my entity.
In your serviceImpl class, you probably have something like:
@Override
public YourEntityClass findYourEntityClassById(Long id) {
return YourEntityClassRepositorie.getOne(id);
}
Change this to:
@Override
public YourEntityClass findYourEntityClassById(Long id) {
return YourEntityClassRepositorie.findById(id).get();
}
It's because the getOne(), returns a reference.