select podioitem0_.ID as id1_0_0_, podioitem0_.JSON as json2_0_0_ from INLIFE_MARK.PUBLIC.podio_item0_0_
这是因为当试图从结果集映射json2_0_0_列时,映射程序找不到它,因为结果集中的列是大写的。那么,有没有办法告诉JPQL或jpa/hibernate在Uppercase中生成JPQL查询?至少对于列名是这样的,所以我希望它看起来像这样?select podioitem0_.ID as ID1_0_0_,
我从这个(在Play Action方法中)开始: if (foo == null) NotFound("BadId") else Ok(Json.toJson(foo)) Option(JPA.em.find(classOf[Foo], id)) match {case Some(foo) => Ok(Json.toJson(foo))
case No