Why does JPA need a no-arg constructor?

2 Answers. Because it often happens that the JPA provider has to instantiate your domain object dynamically . It cannot do so, unless there is a no-arg constructor – it can’t guess what the arguments should be.

Sizin İçin Seçtik  How do you create a default constructor in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *