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 {
// ...