I've a class BaseEntity:
and an extended class:
I'm trying to build a seeder using the builder:
I want Lombok to create a constructor in the BreedEntity with the base class baseEntity.
I read the documentation and it works just fine when I delete the @entity anotation SuperBuilder Docs
Can someone explain in more detail why this is happening?



As the error says, There must be a public no-argument constructors for Entity.
Spring library is designed that way. Let's say you make a query
BreedRepo.findById(...), following things happenBreedEntityis created. (You need the no arg constructor for this)BreedEntiryare set using the setter methods. (You also need to make the setter methods for each@Column)Conclusion: Lombok builder is not compatible with Spring JPA. Use
@DatainsteadYou will have to do this in not so cool looking way,
newthensetX,setY...