org on org.orgId=orderItem.vendorId where orderItem.vendorItemId in :vendorItemIds]at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_65]
at org.springframework.orm.jpa.ExtendedEntityManagerCreator$Ext
我正在用“spring in Action”这本书来学习Spring。它告诉我写一些jdbc代码,这在H2数据库和schema.sql data.sql的帮助下实现了。啊,真灵。然后它告诉我通过在pom.xml中包含spring-boot-starter-data-jpa包来切换到JPA。这对我不起作用。我做了一些googling搜索,并添加了一个属性设置来关闭create table操作。但是,该模式与该书在上一节中用schema.sql编写的模式不同。
这可能不是最好的问题,但我注意到Springboot有2个SpringJPA。它们有什么不同。目前,我正在尝试与hibernate一起安装SpringBoot 1.5.3项目。我记得我之前用spring-boot-starter-data-jpa设置了Springboot with JPA。我见过的大多数在线示例以及starter.spring.io都为springjpa提供了以下依赖项。&l