Intellij IDEA: specify datasource for JPA validation

前端 未结 8 1546
无人共我
无人共我 2020-12-07 16:20

I have a Spring project for a small web app set up in Intellij IDEA.

It uses JPA on top of Hibernate for the persistence layer. The datasource (MySQL) is defined in

8条回答
  •  攒了一身酷
    2020-12-07 17:16

    I had the data source set correctly, but the column names were not shown. After I changed the schema and the catalog like below, everything was recognized correctly.

    @Entity
    @Table(name = "stock_detail", schema = "testing", catalog = "")
    public class Xyz { 
        // ...
    

提交回复
热议问题