The "normal" way to do it is using Liquibase, using the files in your /src/main/resources/config/liquibase directory.
If you want to do it directly in Java, the easiest way would be to use JPA, using your JPA Repositories. Have a look at the methods provided by Spring Data JPA, if you call one of the sample repositories.